While using a front end form, could get values from a query?
Something like this: http://example.com/form?foo_name=bar
, so when you click on the link that will take you to the form, the field called foo_name
will be fille by default with the value bar
.
This is simple to achieve but you will need to edit your template. Just to be clear, this can work on any form but it will not work on the advanced custom fields backend.
Lets say I have the following URL:
http://example.com?tid=12&tem=a@b.co.za
I can get the values from the url using the following PHP and assign it using jQuery:
UPDATE:
This has been solved, I ended up using a function using the acf/load_value filter
And for the button/link I used: