Question, is it possible to add fields in a form using php code? Scenario is, every form are needed with a base form which is common in all form. This is to avoid adding same fields in every form.
Question, is it possible to add fields in a form using php code? Scenario is, every form are needed with a base form which is common in all form. This is to avoid adding same fields in every form.
Do you want to do this when the form is rendered? Or do you mean to do this when creating new forms? I don't think either is possible, actually.
In the past, I have created a "base form" which has all the data which your organization requires on all forms, then duplicate that form and add the data which is new, then save the form with the new name.
Yup that's probably the last choice. Thank you.
It's a good work around to save you time. I have tried doing it by exporting the forms as XML and merging them, but it was troublesome so the BASE form works in my situation. Then I just add the rest of the fields in the form builder. Hope that works for you too.