Skip Navigation

[Resolved] Contact-Form

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 months, 1 week ago.

Assigned support staff: Jamal.

Author
Posts
#2023697

Hi,

before I started using toolset, I already had a plug-in for contact forms.
I wanted to replace this plugin and create a contact form with Toolset.
But unfortunately I have to choose a post-type. But I don't want to save anything. The form should only serve to create an email.

How can I create a form without it being based on a post type?

#2024135

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello and thank you for contacting the Toolset support.

It is not possible, by design, to use a Toolset form without using a post. That's how Toolset forms work. A Form is bound to a post, either it creates a post or it edits a post. It cannot be used without a post.

As a workaround, I suggest that you configure the form to create a new post with the draft status. Then, you can set up a cron job or use a plugin to automatically delete draft posts in this custom post type after few minutes, or once daily.

Read more on how to set email notification for Toolset forms here https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/

You might want to use the automatic expiration feature to change the created post status to trash or something else. Read more about it here https://toolset.com/course-lesson/setting-up-automatic-post-expiration/

Check the following links on how to automatically delete posts on conditions:
- https://stackoverflow.com/questions/21676601/auto-delete-published-posts-after-a-specific-number-of-days-in-wordpress
- https://wordpress.org/plugins/auto-prune-posts/
- https://wordpress.org/plugins/bulk-delete/
- https://wordpress.org/plugins/wp-mass-delete/

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