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