I am trying to pre-select 2 checkboxes in my form using your instructions, but can't seem to get it to work. Can you help?

  • Profile Image
    Asked on March 14, 2012 at 10:05 PM
    <script type="text/javascript" src="http://form.jotform.us/jsform/20614915182147?payment[][id]=1023,1024"></script>
  • Profile Image
    Answered on March 14, 2012 at 10:31 PM
    I think this is the same question you did from a thread started last year
    I found something useful for you


    The form that is used on that example is

    There you will see prepopulated fields , and it can be accomplished by passing URL parameters

    Hope this works for you

  • Profile Image
    Answered on March 14, 2012 at 10:39 PM


    I think that wouldn't work. You can use iFrame embed option instead to achieve it. Or, you can simply add the paramaters to your website URL not on the form. For example:


    Checkbox values are:



    Hope this helps. If you have further questions, please let us know. Thanks.

  • Profile Image
    Answered on March 15, 2012 at 11:59 PM

    Thank you for your help, I feel I am SO CLOSE! Using your suggestion above with the iFrame embed option I am able to pre-select the two checkboxes. However I realize it's not exactly the effect I need. The two checkboxes really are not optional; both need to stay selected. Before I added the second item in the payment wizard I was able to specify that the one item (security deposit) would be sent throught to Paypal regardless. Now with two items it gets more complicated. A unwanted side effect is that when the two checkboxes are set using the url params the total $$ amount is not updated to reflect first time through.....

    For a completely different approach, I am totally comfortable working at the source code level, so I have also tried inserting the source into my page and adding disabled=disabled and checked=checked lines to each input declare. This seems to be exactly what I need to do except that the styles on the text and number fields is lost. Am I missing a css include?

    Here is a link to the latest .html file with the source code embedded, it is marked with comments <!-- BEGIN INCLUDE --> and <!--END INCLUDE -->. The form # is 20614915182147


    Thanks again I really appreciate your time and effort!

  • Profile Image
    Answered on October 08, 2012 at 03:29 AM


    That's due to code conflict, even required field checks isn't working either. I'd suggest embed your source code as iframe to avoid such error. To do that, copy your edited form source code into notepad and then save it as HTML file (example form.html), upload this HTML file to your server and embed it as iframe. Sample iframe code:

    <iframe allowtransparency="true" src="http://www.yourwebsite.com/form.html" frameborder="0" style="width:100%; height:1391px; border:none;" scrolling="yes">

    Just change the bolded URL to your html form URL and adjust the iframe height if needed. 

    Let us know if you need further assistance about this. Thanks!