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

    Is it possible to make embedded forms prepopulate when using Harmony CMS?

    Asked by brianbuttonxp on June 27, 2013 at 10:14 PM

    I'm trying to make form fields prepopulate based on a link that I give to someone for the following URL: http://www.mindsparkpartners.org/refer-friends/referral-form/ . Is this possible? I know how to construct the query portion of a URL, but the trailing slash on the URL seems to be causing a problem. When I add a ?q7_myEmail=foo and refresh the page, nothing happens.

    The site is hosted on harmonyapp and built through their custom development tools, so I never actually create an HTML page. I create templates and fill out a form, and the page is generated for me.

    Brian

    Page URL:
    http://www.mindsparkpartners.org/refer-friends/referral-form/

    make form problem create site
  • Profile Image

    Answered by jeanettebmz on June 28, 2013 at 12:54 AM

    You might probably are looking for something like this

    http://www.jotform.co/form/31596875893879?referrersEmail=johndoe@test.com&referrersName[first]=John&referrersName[last]=Doe

    Please let us know if you need further assistance on regards to this matter.

    If you have an unrelated question, please open a new thread and we will be happy to assist you

  • Profile Image

    Answered by brianbuttonxp on June 28, 2013 at 06:03 AM

    My form is embedded on another page, as I said above, so the exact form of what you showed me doesn't seem to match my situation. And I know how to create query strings on URLs, and I've already tried that. For this site, though, it doesn't seem to work. Since it is a CMS-based site, and not somewhere where I've created my own HTML pages, I was wondering if there was another way to get the URL query string parameters into fields on the page.

    bab

  • Profile Image
    JotForm Support

    Answered by Welvin on June 28, 2013 at 07:33 AM

    Hi Bab,

    Please let us know from which page URL should the data will came from so we can check and let you know if that's possible or not.

     

    Thanks

  • Profile Image

    Answered by brianbuttonxp on June 28, 2013 at 08:13 AM

    I think all of the relevant information was in my first message:

    Website URL: http://www.mindsparkpartners.org/refer-friends/referral-form/ 
    Query Parameter: ?q7_myEmail=foo
    jotform URL: 
    http://form.jotform.us/jsform/31596875893879

    The jotform is embedded in the mindsparkpartners.org page with javascript, in the recommended fashion.

    If I take the website URL and append the query parameters to it, no data appears in the embedded jotform. If I take the trailing / off the mindsparkpartners.org URL and put the query parameters directly after the page name, and then go to that URL, the web server puts the slash back in and then processes the request.

    Any ideas?

    bab 

  • Profile Image
    JotForm Support

    Answered by Welvin on June 28, 2013 at 08:41 AM

    Hi,

    It should be:

     <script type="text/javascript" src="//form.jotform.us/jsform/31596875893879?myEmail=vincecudz@gmail.com"></script>

    http://www.mindsparkpartners.org/refer-friends/referral-form/?myEmail=vincecudz@gmail.com

    Please review this guide: Prepopulating Form Fields via URL Parameters

     

    Thanks

  • Profile Image

    Answered by brianbuttonxp on June 28, 2013 at 09:20 PM

    Hi,

    I understand how to use URL query parameters to prefill form fields. What I don't know, and what I'm asking, is if I can do it for a jotform embedded on the above URL.

    Putting the URL query params on the script line itself, as you illustrate above, isn't practical, as the values will change every time the page is accessed. 

    So, can I use the query parameters on the URL to my page (mindsparkpartners.org) and have them passed to my script? I read the articles about how to make embedded scripts work, it is not working, hence my question.

    Thanks,

    bab

  • Profile Image

    Answered by dinesh-it on June 29, 2013 at 01:51 AM

    Hi, 

    can I use the query parameters on the URL to my page 

    Yes, as my colleague welvin said, you can use query parameters on your page URL itself like

    http://www.mindsparkpartners.org/refer-friends/referral-form/?myEmail=vincecudz@gmail.com

    It is working fine, click on the above link to clarify.

    Please let us know if this not your problem.

    Thank you.