Hi -
Is there a way to use a single form, but somehow track which link trigger opens the pop-up in which the form resides? Currently, I have a 'subscribe' form which is linked both in the global header of the site and from a feature button in the middle of the homepage. I'm currently using two separate pop-up modals - each with a different ID - but both holding the same Formidable Form. I want to find out if one of the link triggers is being used more than the other.
Can the form somehow grab the pop-up's ID and pass it through a hidden field?
OR
Can I use duplicate but unique instances of the form itself, but somehow have the data all submit to one of them so I can keep all of the data together? If this scenario is possible, I would still somehow like to know which form was submitted.
https://route66kickoff.com is the URL with the form
You can add any parameter you want to the formidable shortcode, e.g., [formidable id="myform" click_source="header"] and then have a hidden field in the form that stores the value passed in, e.g., [get param="click_source"]. However, Formidable recommends not using the same form twice on a page. https://formidableforms.com/knowledgebase/publish-a-form/#kb-multiple-forms-on-one-page
I understand the overall concept, and it seems this is on the right track. Using the above example "click_source" parameter, how does the specific click source name/ID get captured or sent to the shortcode? It can't be hard coded into the shortcode, because the two link triggers are in two different page areas so the click source is not yet known until the user clicks. That's the part I can't figure out - based on a click on a button, how can I pass an ID or something on the button to the parameter within the shortcode?
The shortcode lives in a pop-up window that only shows upon clicking one of the two buttons on the page.
After inspecting the source of the page, this discussion is moot because you have multiple elements in the DOM that have the same ID, which is bad. e.g., frm_form_4_container (which is the container for your signup form). I suggest you have one instance of the form in the header, use jQuery to show/hide it from multiple locations, and also set values directly in the form's hidden fields (such as click_source).
Please login or Register to submit your answer