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

    Triggering another .js Within JotForm

    Asked by Swaartbaard on June 25, 2012 at 10:19 AM



    I hope this makes sense:


    I have 2 radio buttons One for an eft and 1 for credit/debit card payment.


    When 'EFT' is selected, the submit button redirects to my home page

    When 'Credit/debit' is selected I want it to reroute the a 3rd party payment solution I use, PayFast, which reuqires the following code: (I have simplecart.js running on my page)


    <a target="_blank" href="javascript:;" class="simpleCart_checkout">Checkout</a>


    I can get radio 1 to work but not the reroute to PayFast... I have downloaded the source html of my form and it looks like it should work but the code is not triggering the simplecart.js I have running on page...

    Is there a way to get this to work??


    Page is http://www.sunshineinabottle.co.za/payment-options-3



    Page URL:

  • Profile Image

    Answered by Swaartbaard on June 25, 2012 at 11:41 AM

    The issue is most likely cause of the 2 scripts running simultanously (JotForm.js and simpleCart.js)


    Is there a way for this t work?


    The iFrame version of the code doesnt seem to work either

  • Profile Image
    JotForm Support

    Answered by idarktech on June 26, 2012 at 04:01 AM


    Possible of code conflict that's why the checkout process doesn't work. Unfortunately JotForm can't be used that way, we do not allow javascripts embedding with the form. I believed there's no way around this.

    Thank you for your understanding.