Hope someone can help me with this. I have created a button ("book viewing appointment") on my product page which will lead to another page ("appointment booking form"). I'd like some indication on the "appointment booking form" page whether it's an url or the product name to be automatically populated in the text field of the form once the button is clicked. Can someone shed some lights on how to do this, please?
The button code I've inserted on my Product page:
<a href="weblink of the appointment booking form" class="btn">
BOOK VIEWING APPOINTMENT
The code of the text field I've added in the "appointment booking form" page is as below. At the moment it's having a placeholder text which I hope it can be filled automatically with the (previous) product page's url/product name that leads to the booking form when the button is clicked.
<label for="ContactFormProduct">Product *</label>
placeholder="Product that I wish to view"