JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Creating a Post Type in Wordpress from JotForm submissionAsked by aipptraining2 on August 18, 2016 at 03:40 AM
I am asking my question because I know you guys offer amazing and quick answers.
My goal is to create a simple form that allows users to tell us how they feel about our service and send their personal picture.
Ultimately that information has to become a custom post type called testimonials then we will post that so other users can see it.
I already have the custom post type done and ready. All I want is for the data to hit the back end of our wordpress and create a draft post to be reviewed and published.
I have searched a lot i found few answers (not for jotform) but still wasnt very clear for me since my php skills are really not that good.
If you can help me with that it would be great. Thank you
From what I understand, you are looking to create custom Post Types in your Wordpress site, from submissions you are receiving on your JotForm forms:
Now I understand that you already have the PHP code ready for creating the Post Type. The only thing you are missing is a JotForm form, and the way to "bridge" the connection (have the data get from your form to your PHP script that creates the custom Post Type).
1. Yes, you can create such a customer feedback form in JotForm.
2. When your form is done, you can forward submissions data to your website as either POST data, or as a Webhook:
What it means is to have a dedicated PHP script set up in the thank you page of your form, which will be receiving the POST data submitted through your form. From this PHP script that receives data from your form, you can trigger any function in your site that you need, and pass this data to your function (generation of custom Post Type in Wordpress).
As some examples how to utilize the PHP script in the thank you page to pass data, you can take a look at the following guide:
As another example, the following guide describes how to trigger sending submission data to a MySQL database:
I hope this helps.