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

    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?

    Asked by CVTSC on March 14, 2012 at 10:05 PM
    <script type="text/javascript" src="http://form.jotform.us/jsform/20614915182147?payment[][id]=1023,1024"></script>
    Page URL:
    http://www.cveea.org/camping2.html

  • Profile Image

    Answered by jeanettebmz on March 14, 2012 at 10:31 PM
    @CVTSC
    I think this is the same question you did from a thread started last year
    I found something useful for you

    http://yang.jotform.com/help/71-Prepopulating-the-fields-to-your-JotForm-via-URL-parameters

    The form that is used on that example is
    http://www.jotform.com/form/10565343954?pleaseChoose[]=Wood,Gold,Metal,Soft%20drinks,Cheese%20cake

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

    Hope this works for you


  • Profile Image
    JotForm Support

    Answered by idarktech on March 14, 2012 at 10:39 PM

    @CVTSC,

    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:

    http://www.cveea.org/camping2.html?payment[][id]=1024,1025

    Checkbox values are:

    1024

    1025

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

  • Profile Image

    Answered by CVTSC 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

    http://www.cveea.org/camping3.html

    Thanks again I really appreciate your time and effort!

  • Profile Image
    JotForm Support

    Answered by idarktech on October 08, 2012 at 03:29 AM

    @CVTSC

    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!