Hi @naifan
I hope you are doing well.
How can I add an email field for email confirmation?
I am afraid this isn’t possible out of the box but we can use this script https://gist.github.com/patrickfreitasdev/12e75dd199799532875b319871904bf1
You just need to edit line 8 to match your form ID.
It will verify if the email-1 and email-2 fields are the same.
You can add it as a mu-plugin https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Is it possible to add a company logo to the mail to the customer?
Yes, but it will require a small code.
You can customise the Email layout in Forminator > Form > Email Notification:
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#email-notifications-forms
To add an image you can upload the image to your WordPress and use the Html image tag: https://www.w3schools.com/tags/tag_img.asp
Best Regards
Patrick Freitas
Thread Starter
naifan
(@naifan)
Thank you, Patrick, it’s working. However, I use several forms on my site, how can I adjust the code, so they are all behaving the same way. Tried adding multiple id numbers separated by a “,” but that doesn’t seem to work.
Thanks again and I love your plugin, very versatile.
Hello @naifan !
If you want to apply the script to all forms, then removing this part from the code will do that:
// Skip if is not the correct form
if( (int) $form_id !== 49 ){
return;
}
Otherwise, please change it to:
// Skip if is not the correct form
$forms = [
123,
456, // place form IDs here
];
if( !in_array($form_id, $forms) ){
return;
}
Warm regards,
Pawel
Thread Starter
naifan
(@naifan)
Many thanks Pawel, that solved my problem.