I have a registration form (Form A) and a blank text field I want to populate with values from Form B; taking into cognizance that a user will fill out Form A first before filling Form B. The fields in Form B that I want to use their values to populate the field in Form A are checkboxes that use separate values.
I have tried every method, from creating a view with Form B to using the [frm-field-value] shortcode to some other custom hooking; none worked.
So, how do I get the value from the fields in Form B and populate it in the field in Form A? Also, so that you know, I want to do this for every new record and existing record.
Please see me through on this. Thanks
What you should do is use the frm_after_create_entry hook to add the value you want to form A. If you don't have a default value in the text field in Form A, it won't exist in the database. Formidable doesn't save empty field values. You have to add it. See: https://formidableforms.com/knowledgebase/frm_after_create_entry/ and https://formidableforms.com/knowledgebase/php-examples/#kb-update-a-field-value
Thanks, Victor... I will try it.
You can use https://formidableforms.com/knowledgebase/frm_setup_new_fields_vars/ (new) and https://formidableforms.com/knowledgebase/frm_setup_edit_fields_vars/ (updating) to populate field values. I don't understand how you plan to populate a new entry in Form A when you don't even have a related Form B entry but regardless, that's how you can do it. You might need to come up with your own SQL commands.
Thank you, Rob... I will get right on into it.
Please login or Register to submit your answer