How can I add another verification email entry box for an event? Im getting too many users entering an incorrect email address, and would like to add a 2nd email entry which verifies against the first email.
That option seems to match the name to existing email address, which is not my requirement. Im after the ability to perform double entry on an email address, to ensure that the user booking the event has entered their email address correctly, and will thus receive confirmation of the booked event.
I really would like to make sure you understand my request, as your suggestion below doesnt address anything close to what im after. Please see the attached screenshot - what I require is a double entry email confirm form, so the user can enter an email twice, ensuring it is correct.
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, and create a "Text" custom field, with "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:
Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways.
If you need help with adding custom JS to the page, please take a look at this article.
If the tag is "CODE1", your shortcode should be [ameliaevents tag='CODE1], nothing more.
This script can be added in a simple text block, if you enclose it with <script>...</script> or in a JS block, without <script>...</script> it really varies from builder to builder, from site to site.
For example, I added it in a Classic block (edit as HTML) in Gutenberg:
How can I add another verification email entry box for an event? Im getting too many users entering an incorrect email address, and would like to add a 2nd email entry which verifies against the first email.
Thanks
Hello,
Thank you for your message.
Just wanted to confirm whether you considered the following option in Amelia:
HI,
That option seems to match the name to existing email address, which is not my requirement. Im after the ability to perform double entry on an email address, to ensure that the user booking the event has entered their email address correctly, and will thus receive confirmation of the booked event.
Hello,
I am afraid Amelia doesn't have this facility at the moment.
You can submit this here as a feature request:
https://wpamelia.cnflx.io/boards/feature-requests
In addition to my previous email, you can consider the following:
You can edit the email field in the database, adding a unique constraint, like this:
And it will not allow anyone to add the same email address if it already exists in the table.
Hi,
I really would like to make sure you understand my request, as your suggestion below doesnt address anything close to what im after. Please see the attached screenshot - what I require is a double entry email confirm form, so the user can enter an email twice, ensuring it is correct.
Thanks
Hello,
I understood your query but Amelia doesn't include this at the moment, I am afraid.
Hello there.
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, and create a "Text" custom field, with "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:
Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways.
If you need help with adding custom JS to the page, please take a look at this article.
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
Hello again.
If the tag is "CODE1", your shortcode should be [ameliaevents tag='CODE1], nothing more.
This script can be added in a simple text block, if you enclose it with <script>...</script> or in a JS block, without <script>...</script> it really varies from builder to builder, from site to site.
For example, I added it in a Classic block (edit as HTML) in Gutenberg:
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
amazing, worked like a charm - thanks so much, this will save me so much time
You're welcome! Glad I could help!
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
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