Update another form

By: Carlo Santos | Asked: 10/20/2022
ForumsCategory: General questionsUpdate another form
Carlo Santos asked 1 year ago
Hi, I have 2 forms, FormA and FormB. They both have fields that share the same entries. If some fields from FormA are updated, how can I automatically update the same fields in FormB when the Entry ID/Key is not known?  I can do it through the API if the Entry ID/Key specified but not in this case. There is a field in both forms that shares a unique code to make the entries related. How do I make it so that any entry with the code will have the update?
1 Answers
Bobby Clapp answered 1 year ago

Maybe you can use part of my code and add it to the update action of the code you use to duplicate the entry between forms A & B. My code looks at one value and finds another and then captures the entry ID. Instead of a create action it would be an update action.


Carlo Santos replied 1 year ago

Thank you for this. I am using the API to create and update the forms. I have limited code knowledge but I will try and find something to combine with the code. The 'primary key' is definitely what I use in all the entries.

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