Skip Navigation

[Resolved] Building a form 2

This support ticket is created 3 years, 11 months 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 3 replies, has 2 voices.

Last updated by Luo Yang 3 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#2157563

Here is the last message from our previous thread "Building a form":
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
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.

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
In the form, there is a field for "Contact Title" and a field for "Contact Content" and a field for "E-mail".

I have done several test emails and here is what I see, and what I wonder about.

The emails arrive at my inbox. The name of the sender of said email is in the body of the message and it links to a page on my website, such as: hidden link. There is no record anywhere of the email address that was entered into the E-mail field.

What I would like: I would like the form to have the following fields in this order:
~ a field for their name (required)
~ a field for their email address (required)
~ a field for their content (minimum 5 words required)
~ an optional field for their phone number
~ Robot test field
~ Submit button

What I would like for a sent form to do:
~ send me the content the visitor entered into the content field. I want to receive and be able to read each submission in my inbox.
~ I would like that it not make a webpage for every submission.
~ I would like for the visitor's email address to be in the "From" field of the email. It would be nice if it printed in the message area of the email as well, but this is not required.
~ send a friendly confirmation notice to the visitor who filled out the form.
~ after sending, it can redirect to a page that I will design. So a place-holder page for the time being will be fine.

There, I think that'll do.

Thank you for your help with what has turned out to be a rather difficult procedure.

Ben

#2158083

Hello,

Q1) I would like the form to have the following fields in this order...
You can follow our document to setup the custom fields in post type "Contacts"
https://toolset.com/course-lesson/creating-custom-fields/#steps-for-adding-custom-fields-to-post-types
The put above fields into the post form "Contact Form":
https://toolset.com/course-lesson/front-end-forms-for-adding-content/

Q2) What I would like for a sent form to do...
You can follow our document to setup the email notifications:
https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/

Please let me know if you need more assistance for them

#2163019

Hi Luo,

Obviously my time is a bit limited for sorting this Contact Form issue. This thread is about to expire. Your last response was simply to direct me to your (Toolset) documentation. This leads me to think that I'm simply overlooking something, as I've previously read the references. So, as my time permits, I'll see if I can sort out the various points of instruction you've given in these threads as well as in the documentation. My fall back position will be to simply use a 3rd party plugin like Contact Form 7. My clear preference is to make Toolset work for this function.

Thanks for the help,

Ben

#2163345

It is very easy to setup the custom fields and email notifications, I assume you need assistance to setup them in your website.

I have done below modifications in your website:
q1) Edit the custom field group "Contacts":
hidden link
Setup the custom fields as you mentioned above:
~ a field for their email address (required)
~ an optional field for their phone number

q2) send me the content the visitor entered into the content field. I want to receive and be able to read each submission in my inbox.
Please try the first email notification "Website Inquiry" of your post form:
hidden link

Q3) I would like for the visitor's email address to be in the "From" field of the email. It would be nice if it printed in the message area of the email as well, but this is not required.
In above post form, section "Form editor", you can display both of custom fields:
- E-mail
- Phone

Q4) I would like that it not make a webpage for every submission.
In above post form, section "Settings", option "After visitors submit this form", choose option "Display a message instead of the form..."

Q5) I would like for the visitor's email address to be in the "From" field of the email. It would be nice if it printed in the message area of the email as well, but this is not required.
In the email notification "Website Inquiry" , you can display the custom email and phone field value with Types shortcode, like this:

Email address: [types field='email'][/types]

Phone number: [types field='phone'][/types]

Q6) send a friendly confirmation notice to the visitor who filled out the form.
Please try the second email notification "Thanks for contacting us" of your post form:
hidden link

Q7) after sending, it can redirect to a page that I will design. So a place-holder page for the time being will be fine.
I have setup a demo in your website:
1) Create a new page "Thanks for contacting us":
hidden link
2) Edit above post form, in section "Settings", option "After visitors submit this form", choose option "Go to a page"-> "Thanks for contacting us"

It is only a demo for your reference, you need to customize according to what you want.