Would love to see once someone fills out a form in the user input sections like once they hit submit the account holder would get an email stating that the form has been submitted and a greater thing would be the form submission content would be in that same email… like a traditional form function on every form platform. Is this possible in the near future without having to jump through a ton of code hoops to create? thanks!
Hi Sandy,
We have there a thread that explains how to write this code. I can also say that we are working on creating a non-coding experience for emails from a form.
Yoav, That would be amazing for the non coding part! Would love to see that.
We’ve just added a new article on this subject:
https://support.wix.com/en/article/sending-an-email-on-form-submission
HI Sam, That is great but only a small part… what about the form information being emailed over as well automatically so you don’t have to log in to view? Like typical forms…
Hey Sandy,
The article explains how to send the form information in the email.
These lines in the example take the information from the form and add it to the subject and body of the email. For your own form, you would modify these lines to pull the values from your input elements using their IDs.
const subject = `New Submission from ${$w("#nameInput").value}`;
const body = `Name: ${$w("#nameInput").value}
\rEmail: ${$w("#emailInput").value}
\rSport: ${$w("#sportDropdown").value}
\rComments: ${$w("#commentsInput").value}`;
thanks!
Hi Sam
I followed the instructions from your article.
I’m trying to use sendgrid.com as my third party Email service.
…But I don’t get any Emails sent.
How can I get any help on that?
Thanx
Lior
Hi Lior,
First, check your spam folder to make sure the emails aren’t going there.
Second, the code should log a message to your browser’s console. That message should tell you whether the call to SendGrid was successful or if there was some error.