Skip Navigation

[Resolved] Building a form

This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 3 voices.

Last updated by Luo Yang 4 years ago.

Assisted by: Luo Yang.

Author
Posts
#2144201

Tell us what you are trying to do?
I am trying to build a contact form for my website.
Is there any documentation that you are following?
I had a thread going with Shane, but I took too long getting back to him on it and it is not closed. Also, I have changed from a local website to an online website so that I can give access to the site for added instruction.
Is there a similar example that we can see?
I am happy to give access to my site. Just tell me how to do so.
What is the link to your site?
guysinthezone.com

#2144499

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Can you describe what you've done so far to create the form?

What's not working?

I'll set the next reply as private so that you can share site credentials.

#2145563

Hello,

I can login into your website, and have done below modifications in your website.

1) Dashboard-> Toolset-> Access Control-> Toolset Forms, in section "Post Forms Frontend Access", enable option "Create Custom Post with the Form "Contact Form"" for user role "Guest".
So Guest user can use this post form to create new "Contact" posts in frontend.
More help:
https://toolset.com/course-lesson/controlling-access-to-front-end-forms/

2) Create a new page "Contact us", and display the post form "Contact Form", test it in frontend:
hidden link

It works fine, please check if it is what you want.

#2146009
After2ndTry.png
Screenshot 2021-08-18 115639.png

We must be getting close. That is a nice looking form!

I am attaching to you the warning that I get when I submit the form one time. When I get the warning and then ignore it, it sends and I get the thank you.

What I receive in my inbox from the form is an email with no body content.

What do you suggest?

Thank you for all the help with this!

Ben

#2146207
email3.JPG

You need to setup the email notification manually, for example:
Edit the post form "Contact Form":
hidden link

In section "E-mail Notifications", click item "Thanks for contacting us", and follow our document to setup the email settings, I have setup a demo in your website, see my screenshot: email3.JPG

More help:
https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/

#2146217

Since you are using other cache plugin, I have done below modifications in your website:
Dashboard-> WP-Optimize-> Advanced settings
in section "URLs to exclude from caching", add the "contact us" page URL: /contact-us/

So this plugin should not cache that page and Toolset post form in frontend.

#2147961
WhyDoesntThisWork.png

Hello Luo,

Thank you for the help so far.

However, I am still very confused by how to do this contact form. I was able to make your suggestions work. However, it resulted in a strange contact form. It required that my visitors input my email address in order to send it to me. I just want them to input their name, their email, and their message (body). There appears to be the option of having a fixed "To" address, but this does not work for me.

So, I played around and used settings that seemed like they should work. I disabled one of the two existing "E-mail Notifications" options and am trying to use just one, as it seems to me that it is designed to be used this way. However, with the settings you'll see in the attached image, it does not work. Perhaps if you explained to my why it doesn't work, I will be able to learn the tricks to making a contact form.

Thank you,

Ben

#2149229

You just need to setup two email notifications in the post form:
1) One sends to the visitor
2) Another sends to the admin user with specific email address

I have done below modifications in your website:
Edit the post form:
hidden link
Edit the item "Website Inquiry", change the email address to: ben@guysinthe****.com

Please test again, check if you can get the emails, and you might need to check it in your email spam folder.