Support » Plugin: Brilliant Web-to-Lead for Salesforce » Drop-down field required is getting away with NULL

  • Resolved aaearhart

    (@aaearhart)


    Hi there

    We’re using the modified version of this plugin so that we may employ drop-down lists (DDL). I have a Country DDL which is required, however it is possible for a user to submit the form without selecting a country. Sometimes the user is then directed to where he should, sometimes a 404 pops up.

    I’m wondering if this is because the first option in my DDL is null, formatted as such: ” : | ” using spaces.

    Is this it or is there something trickier involved?

    http://wordpress.org/plugins/salesforce-wordpress-to-lead/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yep. That was it. I was using ‘space’ for NULL instead of nothing.

    : | option:value | option:value
    vs
    :|option:value

    Plugin Author Nick Ciske

    (@nickciske)

    I suppose the validation code should trim() the value before checking for null to avoid this issue… as any non value should be invalid input for a required field.

    Done, will be released in v2.1 this week.

    As an added bonus, I found a squashed a bug in v2.1 while testing this!

    YAY! Everyone wins.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Drop-down field required is getting away with NULL’ is closed to new replies.