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

    How can I use a field calculated inside the form, outside the form?

    Asked by klt on November 30, 2016 at 12:05 PM

    I have a jot form which currently uses paypal but  we are switching to Moneris.  

    So when the user clicks the submit button I want it to open the moneris gateway page and pass the amount which has been selected to the moneris page.

    It is a WordPress site.

    This is my code at the moment.  

    ***********************************

    <script src="//form.jotform.ca/jsform/50755420608251" type="text/javascript"></script>

    <!--Get user to input value and then take them to Moneris gateway page-->

    To pay using a credit card please enter the amount below before clicking the button

    <FORM METHOD="POST" ACTION= https://www3.moneris.com/HPPDP/index.php >

         <INPUT TYPE="HIDDEN" NAME="ps_store_id" VALUE="XXXXXXX">

         <INPUT TYPE="HIDDEN" NAME="hpp_key" VALUE="yyyyyyyy">

    Please enter the amount to be paid:

         <INPUT TYPE="TEXT" NAME="charge_total" VALUE="33.60">

         <!--MORE OPTIONAL VARIABLES CAN BE DEFINED HERE -->

         <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Click here to pay by Credit Card">

    </FORM>

    ************************************

    I want to remove the paypal integration (when the new code is working),  so that instead of opening paypal when a user clicks the submit button it will open the moneris page and pass the value from the Total field in the jot form to  the charge_total field in the Moneris gateway page. 

     

    Thank you

    Page URL:
    http://keylanguagetraining.com/mandarin-lessons/registration/?order_id<br/>=mhp16334104713p43&amp;cancelTXN=Cancel+Transaction

    Screenshot
    inside the form how use a
  • Profile Image
    JotForm Support

    Answered by david on November 30, 2016 at 02:46 PM

    You can indeed send the form field data to a target PHP script via POST method.  Here is our guide on how to do so:

    https://www.jotform.com/help/213-Send-Submission-Data-via-POST-Method-Using-PHP-and-the-Thank-You-Settings