How to retrieve the form name in a custom Jotform widget?

  • Profile Image
    nraupach
    Asked on February 23, 2021 at 02:51 PM

    In short, is it possible to retrieve the Jotform form name in a Jotform custom widget?

    We are attempting to create custom Jotform widget to perform an action when a form is submitted. However, we need the form name that is being submitted.

    Background:

    It appears the form name does exist in the form page under the meta tag: <meta property="og:title" content="The Jotform Form Name">. Since the widget is rendered in an iframe, we cannot read the parent DOM directly.

    We have successfully created widgets following these steps: https://www.jotform.com/developers/widgets/#overview and can see the JavaScript class JFCustomWidget and JFCustomWidget utils. Is it possible to use these JS classes to read the form name?

    Any assistance is appreciated.



  • Profile Image
    Sonnyfer
    Answered on February 23, 2021 at 08:50 PM

    Hi there - I'm sorry but I think the best team to answer your query is our API team. Would it be possible for you to shoot them an email at api@jotform.com? They're the ones experts in widget creations / APIs.