Is it possible to validate that the longitude and latitude fields have been populated by the Google maps geocoding before a page is submitted? These fields are not listed in the fields of the content type...but embedded within the module I presume.
Is it possible to validate that the longitude and latitude fields have been populated by the Google maps geocoding before a page is submitted? These fields are not listed in the fields of the content type...but embedded within the module I presume.
Comments
Comment #1
TapocoL commentedIf both the FAPI element is not excluded and the 'add a validator link' is enabled on the Validation API Settings page, then you can create a regex validator that tests the field for a proper geocoding format. Then, head to the page that contains the form, and click the add 'a validator link' listed under the geocoding field. Lastly, just fill out the forms with the recently created validator. Any validation that can be applied with regex or PHP can be accomplished.
Read the README.txt and/or the help section for Validation API in the Drupal installation.
Comment #2
bjalford commentedThansl very much. I'll try that tonight and repost if I'm having trouble. Cheers