WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. aaearhart
    Member
    Posted 10 months 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?

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

  2. aaearhart
    Member
    Posted 10 months ago #

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

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

  3. Nick Ciske
    Member
    Plugin Author

    Posted 10 months 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
    Member
    Posted 10 months ago #

    YAY! Everyone wins.

Reply

You must log in to post.

About this Plugin

About this Topic