Tell us what you are trying to do?
Validate form fields before update
Is there any documentation that you are following?
many examples
I spent hours trying to get this code to work without realizing I needed
if ($fields['wpcf-display']['value']!='y')
instead of if ($fields['display']['value']!='y')
all the examples of this code I found online did not have the wpcf
can you pls advise why, in my case, it was required
Also, is the: return array($fields,$errors);
supposed to display the error message in the field itself, because in my case, the error message is displaying in a large area above the form
Also, can you advise me what line of php code is required to access the google lat/lon coordinates (after google goeodes the text form of address)
Thanks very much
Now that I've discovered the need for wpcf, I see other examples where it's used
A follow on question, if I wanted to update fields would it be possible by including in the same snippet the line-
update_post_meta( $post_id, 'wpcf-display', 'ABCDE' );}
if so how would I obtain $post_id
Thanks
Hello. Thank you for contacting the Toolset support.
Can you please first clarify what field(s) you want to validate and what field you want to update after you submit the form and with what value.
What is your problem URL, where you added your form and I will require to adjust the code you added once you share your exact requirements.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Thanks for the reply, I have resolved everything except for
Also, can you advise me what line of php code is required to access the google lat/lon coordinates (after google has geocoded the text form of address)
Thanks very much