Question Editor API Methods
getMetadata()
Returns the metadata JSON of the current Widget.
Currently metadata has key template_reference
which specifies the template with which the current Question is displayed. If a Question is displayed within a custom template, the metadata should be saved as part of the Question. On editing the Question, setWidget
should be called with the metadata as second argument, so that the Question is displayed as it was at creation time.
Arguments
None.
Return value
Type object
-
name string
Template name of given Question or Feature.
-
template_reference string
Template reference of given Question or Feature.
-
created_through string
Indicates how this Question was created (e.g. via generative AI).
-
translated_through string
Indicates how this Question was translated (e.g. via generative AI).