Make Lookup Field Value Permanent After Submission in Formidable Forms

By: othmane omalek | Asked: 12/30/2024
ForumsCategory: General questionsMake Lookup Field Value Permanent After Submission in Formidable Forms
othmane omalek asked 3 days ago
Hi everyone, I'm working with Formidable Forms and I need some help with the following setup: I have a lookup field in my form that dynamically pulls values from another source. However, I want its value to be stored permanently at the time of form submission. Here’s what I need:
  1. Once the form is submitted, the lookup field's value should be fixed and not change even if the source value in the lookup field is updated later.
OR
  1. An alternative solution where I can copy the lookup field's value into a separate text field during submission. This text field should then store the value permanently and not update if the source lookup field changes later when the entry is edited.
I’ve tried some PHP code using hooks like frm_validate_field_entry and frm_after_create_entry, but it either runs during entry updates or doesn’t lock the value properly. Any guidance or sample code to handle this requirement would be greatly appreciated! Thanks in advance!
1 Answers
Bobby Clapp answered 3 days ago
I would go with option two. Add some JS to pull over the value into a text field. Make that text field read only. Have the JS only bring over the value if the text field is empty.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right