What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

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.


  • Profile Image

    Creating a Post Type in Wordpress from JotForm submission

    Asked by aipptraining2 on August 18, 2016 at 03:40 AM

    Hi guys,

     

    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

    JotForm POST creating
  • Profile Image
    JotForm Support

    Answered by Boris on August 18, 2016 at 07:21 AM

    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:

    https://codex.wordpress.org/Post_Types

    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:

    https://www.jotform.com/help/51-How-to-Post-Submission-Data-to-Thank-You-Page

    https://www.jotform.com/help/245-How-to-Setup-Webhook-with-JotForm

    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:

    https://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

    As another example, the following guide describes how to trigger sending submission data to a MySQL database:

    https://www.jotform.com/help/126-How-to-send-Submissions-to-Your-MySQL-Database-Using-PHP

    I hope this helps.