Auto-filling the Name Field in EasyAppointments
Dear EasyAppointments Support Team,
I am using your EasyAppointments plugin on our website ma-therapie.at and would like to automatically prefill the name and email fields when a customer accesses the booking page.
❌ The name field, however, does not get populated, as it does not appear to be an
What already works:
✔️ The email field is successfully prefilled, as it is an<input>
field.❌ The name field, however, does not get populated, as it does not appear to be an
<input>
field.
Our questions:
-
How can we programmatically set the value of the name field?
- Is there a specific JavaScript method or event to insert the name into the form?
- Since
document.querySelector('input[name="name"]')
does not find the field, what is the correct way to reference it?
-
Is there an EasyAppointments API or hook that allows us to prefill the name field?
- We tested the
easyappnewappointment
event, but the name field does not update.
- We tested the
- What is the exact class, ID, or method we should use to find and set the name field?
1 Answers
Hi,
I have checked and both the field name && Email are prefilling, can you please share a video from your end? which shortcode you are using?
Thanks.
Yes, both fields are prefilled with previous content, which is the issue. I want to override them with information provided by the calling URL. While I can overwrite the email address, the name field retains the old name instead of the new one I input. How can I insert the correct information into these fields?
Please login or Register to submit your answer