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?
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.