Skip Navigation

[Resolved] I want to make a contact form using some custom fields in it, is it possible?

This support ticket is created 4 years, 3 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: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 4 years, 3 months ago.

Assisted by: Jamal.

Author
Posts
#2064773

Tell us what you are trying to do?
I'm amb trying to make a contact form ( don't know if I can do it with toolset or I need contact form 7?)
One of the fields of the the contact form should be a select box (dropdown) that shows all the titles of a post type.

Is there any documentation that you are following?
I didnt find any on the forum, I read something about cred but i think this is old.

Is there a similar example that we can see?
I canot find soething right now.

What is the link to your site?
hidden link

#2065073

Hello and thank you for contacting the Toolset support.

Of course, you can do it with Toolset. Create a custom post type "Contacts" or "Messages". Then create a one-to-many relationship between posts and this post type. One post may have many contacts/messages.
Then create a Toolset form for creating Contacts post, you will get the titles of the posts in a select2 dropdown instead of a normal dropdown.
Please note that in this suggestion, the post title won't be a custom field for the Contacts post, it will be a parent in a Toolset relationship.

If you don't want to use a relationship, you can use an empty select field, and populate its options using custom code. Check the custom code suggested by my colleague Raja in this ticket https://toolset.com/forums/topic/use-custom-select-field-with-values-from-custom-post-titles/#post-1838609

Check all the documentation articles about forms here https://toolset.com/related-lesson/post-forms/
If you are interested in using a relationship, check these articles https://toolset.com/related-lesson/post-relationships/

I hope this helps. Let me know if you have any questions.