How to input custom HTML code for a button

  • Profile Image
    ickacademy
    Asked on August 03, 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.

  • Profile Image
    Chriistian
    Answered on August 03, 2015 at 04: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.

     

    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. 

  • Profile Image
    ickacademy
    Answered on August 03, 2015 at 02: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

  • Profile Image
    ickacademy
    Answered on August 03, 2015 at 02: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>

     

  • Profile Image
    david
    Answered on August 03, 2015 at 02: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.

  • Profile Image
    ickacademy
    Answered on August 03, 2015 at 04:57 PM

    ahh fair enough. Thank you!

  • Profile Image
    david
    Answered on August 03, 2015 at 06:01 PM

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

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

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