Optional field doesn′t work
-
Hi Nicola,
Thanks for your plugin. I have been testing it and it′s working fine, even I can send the data to database from the form and this is very good for the web we are preparing. But we are facing an issue; it′s not possible to set the fields as not required (optional) fields. In spite of we have set the field as optional building the CF7 form, if users keep the field empty the form is not sended and appears a message: “No Location set, enter your address then press “SET” to get the location.” This is very important for us because not all the users in our web are going to send their location. I have tried this in two different ssl sites and occures the same. Please, do you know what can be the problem?
A lot of thanks,
Victor
PD: Finally, I have deactivate the below code in cf7-location-module.php and now it′s possible for me to set the field as optional. Sure it′s possible to do it without deleting code, but it′s a “bit gross” way to get it…
If latitude and longitude are empty
if ($posted_lat == ”&&$posted_lng==”) {
$result->invalidate( $tag, __(‘No Location set, enter your address then press “SET” to get the location.’,’cf7-location-module’) );
}A lot of thaks.
- The topic ‘Optional field doesn′t work’ is closed to new replies.