Triggering another .js Within JotForm

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



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