Building a dynamic radio button option list

You can provide the list of radio button element options dynamically from a callback response array supplied by your cloud service.
An example of when you might use callback options is if you want a user to select one of several ISV-specific policies to apply to a device or a tenant. In this case, you would create a callback to respond with an array containing all the available policies for that device or tenant. The callback request can include UI values to refine the search results.

To build a dynamic radio button option list

  1. Select the Callback tab in the Options section.

  2. Select the appropriate callback from the Callback name dropdown.

    Note

    As with all callbacks, you must have already created the callback for it to appear in the list. You must also write code for the CyberApp callback handler to handle the callback. The response payload must include an array of items.

  3. [If the callback requires UI data for the request payload] Map the callback request payload.

  4. The three option fields for mapping the callback response array are name (equates to the Label field in Static options), value, and comment (equates to the Description field in Static options).

    Note

    The comment option field accepts markdown syntax.
    For more information, see UI builder element markdown.

    Important

    The three mappable option fields can only be mapped with properties from a single array in the response payload: you cannot map them across multiple arrays. name and comment can only be mapped to string types. value can be mapped to a string, number, integer or boolean type

Tip

You can automatically pre-select a value by creating an input parameter with the desired pre-select value and the same ID as the select element.