Hi @plugquest
I hope you’re well today!
I’m not quite sure if I understand the case exactly. Could you point us to the page on your site where we could actually see that in action?
It would help to understand what’s happening so we could then suggest solution.
Best regards,
Adam
On this page https://lobnp.wpcomstaging.com/cambridge-cae/
I have 2 buttons on the top right in blue
1. Register Now
2. Free Test
Both those Buttons lead to this form: https://lobnp.wpcomstaging.com/aform/
When someone clicks those buttons, how do I know which button they clicked? Because in the Submission section, it doesn’t tell me anything which button they have clicked, just that they have clicked on the buttons.
Is there a unique ID I can put?
Thanks
Hi @plugquest
Thank you for explanation.
You can use hidden field along with “query parameter” option for this:
1. Add a “Hidden Field” type field to your form
2. Edit that field and from “Default Value (optional)” drop-down list select “Query Parameter” option
3. In a “Query parameter” field that shows up, add the name of the URL parameter that you want to use, let’s say you want to use “ref” – add just that word there; apply option and update form.
4. Now edit both your buttons to change their URLs. Currently both of them use URL
https://lobnp.wpcomstaging.com/aform/
so change the “Register” button to point to
https://lobnp.wpcomstaging.com/aform/?ref=register
and “Free test” button to point to
https://lobnp.wpcomstaging.com/aform/?ref=freetest
From now on there’ll be a hidden field in a form that will have value set to “register” or “freetest” depending on which button was used to go to the form; or if the form page was accessed directly it will be empty.
It will also be listed in Submissions section so you’ll be able to see which button was clicked to access the form.
Best regards,
Adam
Hi @plugquest
I hope you are doing well and safe!
We haven’t heard from you in a while, I’ll mark this thread as resolved.
Feel free to let us know if you have any additional question or problem.
Best Regards
Patrick Freitas