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

    Show teh result of rating scale when they finished the form

    Asked by pmonri on January 16, 2012 at 05:50 AM

    Hi, I have a form with rating scale, my question is, Is it possible to show the result of all the questions when the user finish the form?

    thanks a lot!

  • Profile Image

    Answered by pinoytech on January 16, 2012 at 06:00 AM

    Hi pmonri,

     

    Yes, after the user finish to fill up the form and what ever their answer it will be automatically posted/show on the answer sheet.

     

    Thank you for using JotForm! For further, please don't hesitate to contact us!

  • Profile Image

    Answered by pmonri on January 16, 2012 at 06:16 AM

    Hi pinoytech,

     

    Yes, I see that. But, Is it possible that the the user see in the Thank You Page only their result and personalized text?

     

    thks!

  • Profile Image

    Answered by fxr on January 16, 2012 at 10:55 AM

    hello pmonri,

    To do this, you would have to write some php to access the POST variables of the form, 'mark it' then display the results on the 'Thankyou' page. 

    We may be able to help you with some of the php coding needed; designing the HTML for how you want the thankyou page to look would be place to start, leaving room for the variables you want lifted from each form submission. 

  • Profile Image

    Answered by pmonri on January 16, 2012 at 12:44 PM

    Yes, I see the result in the Thankyou page but I only need the sum of this answers: {teLa}, {liSembla}, {teProblemes}, {teProblemes9}, {seSent}, {faRepetir}, {teDificultat}, {necessitaPujar}, {liResulta}, {sentSorolls}. This vars are numbers. I need the code to put into de Thankyou page.

    In the third option: THANK YOU MESSAGE.

     

    Thanks a lot!!!


  • Profile Image

    Answered by fxr on January 16, 2012 at 05:27 PM

    You cant count the results there.

    You would have use a Custom URL as your thankyou page. 

     

    I have a webpage http://pamppi.info/jotform-testing/php/pmonri.php with this php to count your test:

    <?php 

    //print_r($_POST);

    $total = $_POST['tienela'] +  $_POST['leparece'] +  $_POST['tieneproblemas'] +  $_POST['tieneproblemas9'] +  $_POST['sesiente'] +  $_POST['hacerepetir'] +  $_POST['tienedificultad'] +  $_POST['necesitasubir'] +  $_POST['leresulta'] + $_POST['oyeruidos'] ;

    echo "\n\n\n Total: $total";

    ?>

     

    A cloned version of your form with this php thankyou page in place is here 

     

  • Profile Image

    Answered by pmonri on January 17, 2012 at 03:24 AM

    Thanks!!! This is all I need!

     

    Congratulations!!

  • Profile Image

    Answered by pmonri on January 17, 2012 at 04:36 AM

    One more question,

    I made the same in the other form but they don't sum the final result... why? this is the php code:

    <?php

    $total = $_POST['teLa'] + $_POST['liSembla'] + $_POST['teProblemes'] + $_POST['teProblemes9'] + $_POST['seSent'] + $_POST['faRepetir'] + $_POST['teDificultat'] + $_POST['necessitaPujar'] + $_POST['liResulta'] + $_POST['sentSorolls'] ;

    echo "<span style='font-family: Verdana; font-size:14px'>Este es su resultado: <b>$total</b></span>";

    ?>

  • Profile Image

    Answered by fxr on January 17, 2012 at 04:47 AM

    The php post variables are using slightly different names to those that are used on the form. 

    e.g 

    $total = $_POST['tienela'] +  $_POST['leparece'] ...

     

    Use the php command 'print_r($_POST);' to work out your variable names. 

  • Profile Image

    Answered by pmonri on January 17, 2012 at 10:42 AM

    Congratulations for your support!!

    It's perfect!!