I can't help you with the JS, only to tell you the JS would go in the theme template file used to display the page that contains the form. As for doing it with PHP, you would place the custom PHP in your themes functions.php file.
To do it with PHP you would use the gform_validation hook. Documentation for this hook can be found here:
http://www.gravityhelp.com/documentation/page/Gform_validation
A complete tutorial on how to use the gform_validation hook can be found here:
http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_valiation%22_Hook
As for creating a MySQL table for your custom zipcode data, you'd have to look that up on how to use MySQL. That is outside the scope of Gravity Forms itself and more general MySQL/PHP type information. Your code to match against this data would be part of the code you write for the gform_validation hook that would go in your themes functions.php file.
Posted 14 years ago on Tuesday May 3, 2011 |
Permalink