Forms based on dynamic array
-
Hello there,
I have an array with X (approximately 1-10) elements. For each element, I need to create an e-mail field where users can enter their e-mail addresses. Upon submission, an e-mail should be triggered based on the specific element in the array.
I’ve been brainstorming different approaches, and I’d appreciate some guidance regarding the best way to implement this functionality through Forminator. Here are a couple of ideas I’ve considered:
- Looping through the array to generate individual forms: My initial thought was to iterate through the array and generate a separate form for each element. This way, users can submit a form to trigger the corresponding e-mail. If they need to trigger additional e-mails, they can submit another form. Is it possible to generate simple Forminator?forms using a for loop or a similar mechanism?
- Single form with multiple e-mail fields: Alternatively, I’ve considered creating a single form that includes multiple e-mail fields, each corresponding to an element in the array. Users would fill in the relevant e-mail field, and the corresponding e-mail would be triggered. Is it possible to generate and manage multiple e-mail fields within a single Forminator?form based on the elements in the array?
All e-mails triggered should be the same template – just different content based on the correspongdig element in the array.
The reason why I want to use your plugin is that I want the features about validation and spam protection.
I would greatly appreciate any insights or suggestions you might have regarding the best way to approach this problem. Thank you in advance for your time and assistance!
Best regards,
Peter
- The topic ‘Forms based on dynamic array’ is closed to new replies.