How to input custom HTML code for a button

  • ickacademy
    Asked on August 3, 2015 at 12:43 AM

    I have my own gateway/merchant that has given me integration code that can be embedded into a submit or "pay here" button. How can i customize the code for the submit button? Thanks.

  • Chriistian Jotform Support
    Replied on August 3, 2015 at 4:58 AM

    Hi, 

     

    You can try to add your HTML code in Text field. You can check the demo below for instructions on how to do this on your form.

    How to input custom HTML code for a button Image 1 Screenshot 20

     

    If your integration code contains scripts, it might not work using Text Field. You will need to download the source code of your form and then add your payment integration code. 

     

    Do get back to us if you encounter any problems.

     

    Regards. 

  • ickacademy
    Replied on August 3, 2015 at 2:17 PM

    Thanks!

     

    I tried that and the button showed up, but it didnt work. When I try the code for the button on lets say an empty webpage, it works just fine. but in this case it just went back to our main website and didnt do anything

  • ickacademy
    Replied on August 3, 2015 at 2:20 PM

    Here is the code: but i am changing some of the values for security reasons

     

    <form method='post' action='https://swp.paymentsgateway.net/co/default.aspx'>

    <table cellSpacing='0' cellPadding='0' border='0'>

    <tr>

     

    <td align='right' width='300'></td>

    <td align='left' width='200'>

     

    <input type='hidden' name='pg_api_login_id' value='API_LOGIN_ID'/>

    <input type='hidden' name='pg_consumerorderid' value='Membership'/>

    <input type='hidden' name='pg_scheduled_transaction' value='0'/>

    <input type='hidden' name='pg_schedule_continuous' value='0'/>

    <input type='hidden' name='pg_schedule_frequency' value='0'/>

    <input type='hidden' name='pg_total_amount' value='50.00'/>

    <input type='hidden' name='pg_save_client' value='2'/>

     

    </td></tr>

     

    <tr><td align='right' width='300'></td><td align='left' width='200'><INPUT TYPE=SUBMIT value='Pay Here'><br></td>

     

    </tr>

    </table>

    </form>

     

  • David JotForm Support
    Replied on August 3, 2015 at 2:49 PM

    Hi,

    You would need to use the full source code of your form and change the submit button code from there:

    http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form

    Since the submit actions and such are tied to the button itself, adding your own submit button code will not work by itself. 

    It would not be possible to add the button code directly in the form itself.

  • ickacademy
    Replied on August 3, 2015 at 4:57 PM

    ahh fair enough. Thank you!

  • David JotForm Support
    Replied on August 3, 2015 at 6:01 PM

    You are very welcome.  If you have any further questions, let us know and we will be happy to help.

  • ickacademy
    Replied on August 10, 2015 at 10:23 AM

    SO a followup. Lets say I got that working (I havent but lets say I have), where I have the code in the source file. How do I now set this form up on Wordpress? I mean where on my server would I put the files? I guess I can go old school and put the form in a directory of my server and point the URL to it. Is that the only way?

  • David JotForm Support
    Replied on August 10, 2015 at 11:34 AM

    To embed the full form in your Wordpress page, there is a slightly different method of embedding the form:

    http://www.jotform.com/help/4-Adding-Forms-to-Wordpress-org-version

    If you are using the Wordpress.com version, the full source code may not embed properly:

    http://www.jotform.com/help/299-How-to-Embed-Form-to-Wordpress-com?

    In the case of wordpress.com, you would likely have to put to a link to a source code embedded page.