Is it possible to pass data from iframe into the form it's embeded into?

  • abdel160
    Asked on October 26, 2017 at 2:08 AM

    i'm using an iframe embed widget  to embed an external scheduling calendar and need to pass data from the calendar back to the form to prepopulate fields...

    Also, since i set the iframe field to "required" the form is stuck since it doesn't know if the booking was confirmed or not (inside the iframe) 

     

  • liyam
    Replied on October 26, 2017 at 5:59 AM

    Yes, it should still be possible to data to a form embedded on a web page via iframe. What you simply need to know is the field names that you wish to be prepopulated.

    If you can share with us the page where the form is embedded, and give us more details on the matter, we might be able to provide you a direct solution to your concern.

    Thanks.

  • abdel160
    Replied on October 26, 2017 at 10:52 AM

    Hi,

    that's not what i meant.  i need to pass data from a calendar embeded in an iframe inside a jotform back to the same jotform. please go over my question again and check the attacked form. if you attempt to go thru it, you'll be stuck on the iframe field because it's required and the jotform can't tell if the requirement was fulfilled or not

  • TREVON
    Replied on October 26, 2017 at 12:40 PM

    Thank you for contacting us and for the clarification.

    Unfortunately it is not possible to post the data from the embedded form to the main form. If i may ask what was the intention of embedding the form for users to select the booking using datepicker?

    If you could explain the rationale behind this idea we can see how we can better approach it and find a better working solution.

    Kindly check out this guide will provide a solution that may be used as a workaround to the above issue.

    https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form

    Thank you.

  • abdel160
    Replied on October 26, 2017 at 3:21 PM

    yes, a workaround would be to not embed the datepicker and just post data to it through url after the user clicks the submit button...BUT the the main reason i need to use it inside the form is because by the time i'm done with the form it'll have other fields and payment at the end and i need the datepicker to be required before all of them...any way of achieving that?
    p.s. sandwiching the datepicker between 2 jotforms is, unfortunately, not an option

  • Mike
    Replied on October 26, 2017 at 5:18 PM

    I am afraid that we cannot integrate a different service into the form using built-in tools.

    A basic slot selection may be possible with a MultiSelect Grid widget.