Is it possible to get the quiz response and post it over wordpress?

  • Profile Image
    Marcus Vinicius
    Asked on October 08, 2014 at 02:58 AM
    Another question is: I embed the form on a page in wordpress, it is working very well, but the response page dont work in wordpress, Is it possible call the jotform response from wordpress?
  • Profile Image
    jonathan
    Answered on October 08, 2014 at 07:49 AM

    Hi,

    I think this is very much possible.

    You can just embed the result of the quiz that is loaded in your webpage to the WP page.

    You can use the iframe embed code like this

    <iframe src="http://www.mywebsite.com/test_result.html" frameborder="0" style="width: 100%; height: 500px; border: none;"></iframe>

     

    where the webpage (http://www.mywebsite.com/test_result.html) contains the result page

    <iframe src="//quizform.jotform.io/submission.php?formID=42524193360349&sid=<?php echo $_POST['submission_id'];?>" frameborder="0" style="width: 100%; height: 500px; border: none;"></iframe>

    Again the main requirement that you have to do first is to be able to create the website page where we can see the Quiz result loaded.

    Try accomplishing first the website where you have loaded the Quiz result, and we will move forward again from there.

    Thanks.

     

     

      

     

     

  • Profile Image
    Estanislao
    Answered on October 08, 2014 at 09:08 AM

    Hi Jonathan

    Thank you.

    But my webpage that process this script: 

    <iframe src="//quizform.jotform.io/submission.php?formID=42524193360349&sid=<?php echo $_POST['submission_id'];?>" frameborder="0" style="width: 100%; height: 500px; border: none;"></iframe>

    run as .php extension, and was save like result.php. It is working.

    But how I can run this code into html page and save, for exemplo like  test_result.html.

    After this I understant that possible  use the iframe embed code:

    <iframe src="http://www.mywebsite.com/test_result.html" frameborder="0" style="width: 100%; height: 500px; border: none;"></iframe>

     

    Thank you verymuch.

    Marcus

  • Profile Image
    jedcadorna
    Answered on October 08, 2014 at 10:30 AM

    It should be php extension as you will be sending POST to your result page as HTML cannot parse php syntax. As what suggested by my colleague that you create first your quiz form then from there we'll proceed with the next step which is to pull up the result data of your quiz form.

  • Profile Image
    Estanislao
    Answered on October 09, 2014 at 06:45 AM

    Thank you Jedcadorna.

     

    I understand.

    I created a form quiz: http://form.jotformz.com/form/42793949920671?

    after I created a page in .php (please see atch). It´s workink very well.

    Please  how I  pull up the result into html page like: (http://www.mywebsite.com/test_result.html ) ? 

    Thank you very much

  • Profile Image
    jedcadorna
    Answered on October 09, 2014 at 08:22 AM

    I'm not sure if this is possible using the API in javascript format as I haven't tested this. About PHP this won't parse the syntax if you use .html extension. Sending POST data after submission can only be interpreted by php language as you will be using php syntax. 

    I think our API only connect or gets data but doesn't POST after submission. Posting submission is only for PHP language as far as I know. You can view our API here to so you can check http://api.jotform.com/docs/#submission-id