PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

gform validation - registration

  1. ChrisSF
    Member

    Using GForms 1.6.1 with gravityformsuserregistration.

    Trying to validate zipcode based on country.

    This works in that it will fail when checked against a hard-coded zipcode for testing.
    I can retrieve the value of the zipcode field.

    http://www.pastie.org/2864460

    But I can't retrieve and store the value of the selected Country selector into '$this_country'.
    I need the country so I can select the proper zipcode db table .

    How can I get the value from that field?
    Or is there a better way to go about this?

    Posted 12 years ago on Monday November 14, 2011 | Permalink
  2. ChrisSF
    Member

    Solved - forgot that strpos doesn't return true when found.
    Changed to !== works now.

    Posted 12 years ago on Tuesday November 15, 2011 | Permalink
  3. Thank you for the update.

    Posted 12 years ago on Tuesday November 15, 2011 | Permalink

This topic has been resolved and has been closed to new replies.