Dynamic Textbox: Ability to populate dynamic widgets from other fields or URL parameters.

  • mrlemki
    Asked on December 11, 2018 at 2:03 PM

    I want to pre-fill information inside a widget. I don't want to make the user enter everything directly into the widget. I also want the information passed to the widget to be collected dynamically, either from the containing form's URL parameters or from inputs within the containing form.

    How do I do this? I can't find any way to use the form URL to pre-fill iframe widget values, and I don't see any forms API method available to pass the value.

    The closest thing I have found is setting the value of the widget using conditional form logic - but I don't see any way for the widget to actually react and do something when the value changes. The only options related to the value within the widget seem to deal in setting the value but not listening for changes to it.

    Thanks for any help you can give me!

  • Mike
    Replied on December 11, 2018 at 4:52 PM

    It looks like the widgets are being pre-filled by the input name from the widget-inputs-wrapper section.

    The items are separated by the new line separator %0A.

    Example:

    https://form.jotform.com/83446249977979?dynamicTextbox=value1%0Avalue2%0Avalue3

    Dynamic Textbox: Ability to populate dynamic widgets from other fields or URL parameters Screenshot 20

    The unique field names like {someName} seems to be not supported.

    We can also forward your inquiry to our developers, but they might not be able to process it in the nearest time due to their workload.

  • mrlemki
    Replied on December 14, 2018 at 5:38 PM

    Thanks for the response!

    Can you please ask your developers about how to set non-dynamic field values? Even if it takes a while this could help me a lot to make my boss happy.

    Also - for the working example you provided, is there any way to make the widget aware of other form field values outside the widget? I'm assuming security precautions won't allow reading values from other form elements outside the widget. But maybe at least passing them into the widget somehow? I tried conditional logic on the form, but it only works with the single result value of widgets - I can't set or get inner elements.

    Thanks again!

  • Jed_C
    Replied on December 14, 2018 at 11:01 PM

    Can you please ask your developers about how to set non-dynamic field values? — 

    To clarify, you are referring to the pre-filling the widget in this form https://form.jotform.com/83304652842153, correct?

    Is there any way to make the widget aware of other form field values outside the widget? —

    The reading is contained inside the iFrame itself where the widget loads so I don't think it's possible to affect other fields / elements by iFrame.

  • mrlemki
    Replied on December 17, 2018 at 10:43 AM
    Non-dynamic field values - yes, please.
    Passing values to/from widgets - makes me sad, but thanks for responding.
    ...
  • jherwin
    Replied on December 17, 2018 at 12:32 PM

    I am sending the thread as a feature request to our backend team for evaluation. We cannot guarantee that the feature will be implemented or cannot provide any time frame for implementation at the moment. However, once we have any information in this regard, you'll be posted here.

    Thank you!