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

  • Profile Image
    brianbuttonxp
    Asked 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

  • Profile Image
    jeanettebmz
    Answered 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
    brianbuttonxp
    Answered 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
    Welvin
    Answered 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
    brianbuttonxp
    Answered 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
    Welvin
    Answered 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
    brianbuttonxp
    Answered 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
    dinesh-it
    Answered 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.

  • Profile Image
    grushabh
    Answered on January 04, 2017 at 01:31 PM

    hello,

    I am trying to do the same thing but it does not appear to work. 

    For example https://form.jotform.com/63628619067162??email=test@gmail.com works.

     

    But this form is embedded on https://www.louiesclub.com/create-request.html

    And https://www.louiesclub.com/create-request.html??email=test@gmail.com does not work.

     

    Is there another workaround for this? 

  • Profile Image
    Welvin
    Answered on January 04, 2017 at 02:37 PM

    @grushabh: I have created a new thread for your problem. Please access it here: https://www.jotform.com/answers/1025556