I'm currently creating a feature for an application which allows users to create custom forms. This renders fine, however my issue lies in capturing the information after the form is submitted.
For the sake of this question let's say I have an array of input names (as strings).
['firstName', 'lastName', 'emailAddress']
Upon submission I need to loop through the array and use the strings to determine the target elements to grab the values from.
e.target.'array string'.value;
How can I do it?