How can I prepopulate an Iframe widget (embedded in a JotForm form) with values already entered in the parent form?

  • kristiaansheedy
    Asked on November 6, 2017 at 12:39 PM

    For example, let the following describe the relationship among the forms discussed:

    Form A is a parent form. Form B is a subform embedded within the parent form via the iframe widget. 

    Form B contains fields which are also contained in A and would necessarily contain the same values as the fields in A. 

    The filler is the random person entering info. 

    How can I pull the values entered in A (which will necessarily occur before reaching form B) and prepopulate form B with those values such that the filler does not have to re-enter those values again? 

    While the typical "https://...srcurl...?fieldA[name]=someName

    works fine for static values, that doesn't help in this case. 

    The page on this end appears to load as .htm which would preclude me from using .php and associated $_GET operations to pull the form A values and push to form B. That could change if I embed form A into a host site but doesn't help when it's a standalone.  

    Any ideas? 

    Thanks in advanced :D 

    For any support looking at this, the iframes are embedded on pages 19-22 of the form. 

  • TREVON
    Replied on November 6, 2017 at 1:53 PM

    Thank you for contacting us. Based on your scenario, unfortunately it would be possible to have two forms communicate especially when you have the child form embedded in the parent form.

    If possible would you kindly elaborate on what you want to achieve so that we can try and figure out the best way to approach this?

  • kristiaansheedy
    Replied on November 6, 2017 at 2:01 PM

    In short, I have a series of onboarding forms that need be filled out by new hires or independent contractors. Several of those subforms are conditional. Those subforms may also be used by currently hired/contracted employees (after the initial hire stage) to submit similar requests. 

    I realize that one alternative (which would in effect solve the prepopulation problem) would be to just add the same subform fields and such to the parent form and automatically skip irrelevant pages etc. then break up the data on my end after the webhook sends it over. 

    If there's a lazier alternative to prepopulate then I'm all ears. If not, I suppose I can just go with the above alternative. 


    Thanks for the quick response!

    Best, 

    K

  • TREVON
    Replied on November 6, 2017 at 2:16 PM

    Thank you for the clarification. I think the proposed Idea would work best for the setup you have described.

    You can have users choose a certain option to identify if the are Contracted or hired employees. Once the choice is made they can be able to see specific pages or questions set in the conditional Logic.

    https://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic

    Kindly do let us know if you need further assistance.