Form field for specifi form only
-
Good day
Thanks for the wonderful support. I suppose the solution would be easy with Form Field Manager however due to affodability I forced to work on a fee feuatures and snippers that is avaible to us.
I followed the instruction on this link: https://github.com/impress-org/givewp-snippet-library/blob/master/translation-snippets/change-text-locally-per-form.php
I managed to add form fields on specific form onlny as directed. The problem is when I check the data for the submitted form those new fields is not there both on the mysql data base (backend donormeta or donationmetat table)
Here are some notes:
1. I don’t get any error.
2. When I use the very same code without the condition for selecting to show on specific form the fields work fine.
3. Since it works fine I decided to add the code for the fields inside the if statement as guided by the snippents, the form load properly but on submition it does not save the data to the databse it only saves the other fields which are not form specific.
4. Please note that the fields can save properly when not using the if statement.Give()->donor_meta->add_meta( $donor_id, ‘_give_donor_myfield101’, $new_myfield101 ); // to save to donor meta.
I there a work around this?
I realy need to have extra fields on 1 form but keep standard field on other forms.
Please advice.
The page I need help with: [log in to see the link]
- The topic ‘Form field for specifi form only’ is closed to new replies.