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

  • Profile Image
    Asked 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="//" 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


         <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">


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



    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

  • Profile Image
    Answered 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: