Creating or configuring forms > Adding a string decider > Listing string deciders

7.7.1 Listing string deciders

Whenever the XML allows users to specify a list strings decider (instead of a concrete list), the following are valid inputs:

A string to list decider takes a single string and parses the string into a list of strings using a delimiter.

To add a string to a list decider

  1. Locate the UI component that holds a string (such as a text box or select box).
  2. Set the <calculate operation="string-to-list"> tag. Insert one child element, which is any string value decider (such as a component or another <calculate> element).
  3. (Optional) Set the delimiter attribute to specify how the list is delimited. If a delimiter is not specified, Viewpoint uses a comma to tokenize the string.
  4. <calculate operation="string-to-list" delimiter=",">
       <component id="hostListTextbox" />
    </calculate>

    The "hostListTextbox" component contains a comma-separated list of values that will be converted to a list. This allows you to pass a string into components that accept lists for their input.

Related topics