Public Method Author API


Gets the current metadata JSON of the widget being edited in an Item.

You would want to use this method so that you can display the Question metadata being edited in your application, for example.


var widgetMetadata = authorApp.getWidgetMetadata();



Return value

  • object

    The current Widget metadata JSON. See widgetMetadata for more information.

  • boolean

    Returns false if not in the Widget editor view.

Type definitions

widgetMetadata object

  • name string
    Widget template name.
  • template_reference string
    Widget template reference.
  • created_through string
    Widget template name.
  • translated_through string
    Widget template reference.

See Widget Template References for Question Editor Customization & Navigation for more information.

Related articles

Was this article helpful?