Announcement

Collapse
No announcement yet.

Web-to-Lead Boolean Values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Web-to-Lead Boolean Values

    Hi,

    I'm attempting to write Web-to-Lead. Text fields are working fine, but the boolean fields aren't being set.

    JSON Sent

    "skillsPublicRelations": "true",
    "skillsProgramming": "true",
    "skillsTravel": "true",

    Attached is the part of the Entity Fields for Leads.

    I've tried, True, true, 1, nothing sets the values. The fact that text fields work, leads me to think it's something in how I'm representing boolean values.

    Thanks!
    Russ

  • #2
    I believe "true" is a varchar text so it won't work for boolean, for boolean in my experience it is usually = 0 or 1.

    So =1 might mean it is True (box ticked)
    =0 might mean it is false (box blank)

    But you mentioned trying 1 and it won't work, could try 0 and see and also try "=1", 0, "1".

    Not sure to be honest.

    Comment


    • #3
      Testing further, this doesn't appear to be a boolean issue.

      Nothing is being written beyond firstName, lastName, and emailAddress, even standard fields.

      I'm using Postman to send the JSON

      {
      "firstName": "John",
      "lastName": "11_Smith",
      "emailAddress": "a11@domain.com",
      "title":"Chief Bottle Washer",
      "addressCity": "SomeCity",
      "website": "www.website.com"
      }

      Espo returns Status 200 and true. Nothing reported in the error logs.

      Russ


      Comment


      • #4
        Argh... In the Lead Capture screen, I'm telling it to only look for those 3 fields!

        Russ

        Comment


        • #5
          The boolean value in Web-to-Lead that works is "skillsProgramming": "1" sets the field.

          Russ

          Comment

          Working...
          X