Comments 1Ovidio started the conversationSeptember 19, 2022 at 11:09pmI need to add JS to validate those input. I know how to add the JS and how to write it. But I don't make it to work. Because the JS load on the page, but those inputs are not finded until the customer land to that part.I need to make a email validation. Any suggestion? 111Stanislav repliedSeptember 20, 2022 at 8:14pmHello Ovidio, Thank you for reaching out to us.I have passed this issue to our level 2 support team and we will provide you with an update as soon as we have one.Take care!Kind Regards, Stanislav Snagovskiy[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 You can try wpDataTables add-ons before purchase on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables 1Ovidio repliedOctober 1, 2022 at 6:32pmAny news on how can I accomplish the input validation?? 111Stanislav repliedOctober 3, 2022 at 4:52pmDear Ovidio, This has been forwarded to our developers and they are currently looking into it, I will get back to you as soon as I hear back from them.Thanks for your patience for now. We look forward to resolving your request!Kind Regards, Stanislav Snagovskiy[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 You can try wpDataTables add-ons before purchase on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables 2,572Aleksandar repliedOctober 4, 2022 at 9:33amHello Ovidio.Email verification is not possible with Amelia, but there's a workaround you can apply that will check the email. Here's what you need to do: Go to Amelia/Customize/Custom Fields, create a "Text" custom field, with the "Required" checkbox enabled, and apply it to all services: Then go to Amelia/Notifications and click on "</>Show Email Placeholders" to see the ID of that custom field: Then, on the booking page, add a custom script: <script> window.afterConfirmBooking = function(appointment, bookable, provider, location) { if (appointment.bookings[0].customer.email !== appointment.bookings[0].customFields[14].value) { var alertElement = document.getElementsByClassName('el-alert__title')[0]; alertElement.innerHTML = 'Emails do not match'; var alertBlock = document.getElementsByClassName('am-payment-error')[0]; alertBlock.children[0].style.display = 'flex'; alertBlock.scrollIntoView({ behavior: 'smooth', block: 'start'}); throw "Abort"; } } </script> Just make sure to enter the correct Custom field ID in: customFields[14].value This will not allow the customer to proceed with the booking if the email in the email field and the email in the custom field do not match: I hope that helps! Please note that this currently only works on old booking forms. The 2.0 Step-by-step booking form can't use the same JS code.Kind Regards, Aleksandar Vuković[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 Tables1 Like Sign in to reply ...
I need to add JS to validate those input. I know how to add the JS and how to write it. But I don't make it to work. Because the JS load on the page, but those inputs are not finded until the customer land to that part.
I need to make a email validation.
Any suggestion?
Hello Ovidio,
Thank you for reaching out to us.
I have passed this issue to our level 2 support team and we will provide you with an update as soon as we have one.
Take care!
Kind Regards,
Stanislav Snagovskiy
[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
You can try wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Any news on how can I accomplish the input validation??
Dear Ovidio,
This has been forwarded to our developers and they are currently looking into it, I will get back to you as soon as I hear back from them.
Thanks for your patience for now.
We look forward to resolving your request!
Kind Regards,
Stanislav Snagovskiy
[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
You can try wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Ovidio.
Email verification is not possible with Amelia, but there's a workaround you can apply that will check the email. Here's what you need to do:
Go to Amelia/Customize/Custom Fields, create a "Text" custom field, with the "Required" checkbox enabled, and apply it to all services:
Then go to Amelia/Notifications and click on "</>Show Email Placeholders" to see the ID of that custom field:
Then, on the booking page, add a custom script:
Just make sure to enter the correct Custom field ID in:
This will not allow the customer to proceed with the booking if the email in the email field and the email in the custom field do not match:
I hope that helps!
Please note that this currently only works on old booking forms. The 2.0 Step-by-step booking form can't use the same JS code.
Kind Regards,
Aleksandar Vuković
[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