Thank you for expressing interest in purchasing the Amelia plugin.
You can use the following script to take the parameters from the URL and pass them onto the fields on the front-end:
<script> var getUrlParams = function (url) { var params = {}; var parser = document.createElement('a'); parser.href = url; var query = parser.search.substring(1); var vars = query.split('&'); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split('='); params[pair[0]] = decodeURIComponent(pair[1]); } return params; }; window.urlParams = getUrlParams(window.location.href); window.beforeConfirmBookingLoaded = function () { var firstName = document.querySelector("#am-confirm-booking > div:nth-child(1) > form > div.am-confirm-booking-data.el-row > div:nth-child(3) > div > div > div > input"); var lastName = document.querySelector("#am-confirm-booking > div:nth-child(1) > form > div.am-confirm-booking-data.el-row > div:nth-child(4) > div > div > div > input"); if ('firstName' in window.urlParams) { firstName.value = window.urlParams.firstName; firstName.dispatchEvent(new Event('input')); } if ('lastName' in window.urlParams) { lastName.value = window.urlParams.lastName; lastName.dispatchEvent(new Event('input')); } } </script>
Feel free to contact us if you have any other questions.
We have passed this issue to our developers who will be working on finding the solution, and we will provide you with an update as soon as we have one.
Hey, so I wondered if you offerd this feature.
I want to pass data to the form like this:
?first_name=sebastian&email=sebastian%40gmail.com
And that this data shows in the booking form.
Thanks!
Sebastian
Hello Sebastian,
Thank you for expressing interest in purchasing the Amelia plugin.
You can use the following script to take the parameters from the URL and pass them onto the fields on the front-end:
Feel free to contact us if you have any other questions.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi and for the email?
Hi, so I tested it on a friends site, and this is not working.
Well, kinda. The first name is showing on the lastname and the lastname in the email field:
Could you pass me the fix please?
Much appreciated.
Sebastian
Hello Sebastian,
We have passed this issue to our developers who will be working on finding the solution, and we will provide you with an update as soon as we have one.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables