I am not sure if i understood, do you mean like to verify and make the customer input email twice on the form, and to alert the customer if the emails don't match - so they don't make a mistake?
Email verification is not yet possible with Amelia.
We have a workaround only for the old booking Form,
but for the new Step form we are still working on it.
If you'd like the workaround for the Old booking form, here it is :
Here's what you need to do:
Go to Amelia/Customize/Custom Fields, and create a "Text" custom field, with the "Required" check-box 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:
Or perhaps if you meant to send the customer an email for approved booking confirmation - and to get an email status notification, if it fails to send - this will automatically happen for some email providers,
for example i use Gmail for notifications on my Amelia Test.
And this is how it looks if a customer inputs an email address that does not exist, and tries to book.
The booking will be confirmed, but when my system sends him an email - i get status that it is not sent properly.
-
Let me know how all of that sounds, and if i understood you correctly. Thanks
Yes Milos ! is just on the information step I would like to have a function php or something to validate the mail on the second field to avoid mistakes you know ?
But you solution with the script is very interesting ! where I put exactly the script ?
Currently, we don't have a way to validate with a PhP function;
But this workaround with a JS script placed on the WP page absolutely does the trick; if the customer does not input the same email twice, there will be an Alert to stop the booking, and they have to re-input the email to make sure it is "same twice".
I tested it personally the other day, and it still works, only for the old Booking Forms;
We still have to create a solution for the new Form, though.
All you have to do is add a custom HTML block, and to input this script i gave you, on the booking page (s).
For example, if you use Gutenberg blocks, choose a custom HTML code > and paste this JS code - it should work.
-
But let me know if you need any help with setting the script on page.
Hi !
I want to know if there any confirmation mail ?
For example, if a customer fail on his email address when he book.
How to know that ?
Thank you !
Anyone ? :(
Hi Ben
Sorry for the delay
-
I am not sure if i understood, do you mean like to verify and make the customer input email twice on the form, and to alert the customer if the emails don't match - so they don't make a mistake?
Email verification is not yet possible with Amelia.
We have a workaround only for the old booking Form,
but for the new Step form we are still working on it.
If you'd like the workaround for the Old booking form, here it is :
Here's what you need to do:
Go to Amelia/Customize/Custom Fields, and create a "Text" custom field, with the "Required" check-box 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
Let me know how it goes. Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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 Ben
Or perhaps if you meant to send the customer an email for approved booking confirmation - and to get an email status notification, if it fails to send - this will automatically happen for some email providers,
for example i use Gmail for notifications on my Amelia Test.
And this is how it looks if a customer inputs an email address that does not exist, and tries to book.
The booking will be confirmed, but when my system sends him an email - i get status that it is not sent properly.
-
Let me know how all of that sounds, and if i understood you correctly. Thanks
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Yes Milos ! is just on the information step I would like to have a function php or something to validate the mail on the second field to avoid mistakes you know ?
But you solution with the script is very interesting ! where I put exactly the script ?
? sorry for insisted
Hi, Ben
Sorry for the waiting time
-
Currently, we don't have a way to validate with a PhP function;
But this workaround with a JS script placed on the WP page absolutely does the trick; if the customer does not input the same email twice, there will be an Alert to stop the booking, and they have to re-input the email to make sure it is "same twice".
I tested it personally the other day, and it still works, only for the old Booking Forms;
We still have to create a solution for the new Form, though.
All you have to do is add a custom HTML block, and to input this script i gave you, on the booking page (s).
For example, if you use Gutenberg blocks, choose a custom HTML code > and paste this JS code - it should work.
-
But let me know if you need any help with setting the script on page.
Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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