WordPress-to-lead for Salesforce CRM
[resolved] Drop-down field required is getting away with NULL (4 posts)

  1. aaearhart
    Posted 2 years ago #

    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?


  2. aaearhart
    Posted 2 years ago #

    Yep. That was it. I was using 'space' for NULL instead of nothing.

    : | option:value | option:value

  3. Nick Ciske
    Plugin Author

    Posted 2 years ago #

    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!

  4. aaearhart
    Posted 2 years ago #

    YAY! Everyone wins.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress-to-lead for Salesforce CRM
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic