Defining a text element dynamically

You can dynamically control text elements by :doc:`mapping <../../../../mapping/index> a callback’s response data to the text element Text property.
To map callback response data to a text element, you must define the text element ID property. Otherwise, the text element object will not appear on the Model side of the the mapping tool.

To dynamically control a text element, a callback must respond with data which defines the text element Text property, and you must map this data.

Note

To map callback response data to a text element, you must define the text element ID property. Otherwise, the text element will not appear on the Model side of the the mapping tool.

The callback response object must have the following structure:

{
  "type": "object",
  "properties":
  {
      "text":
      {
        "type": "string"
      }
  }
}

where:

  • text corresponds to the Text property of the text element.