Legacy Dev Forum Posts

 View Only

Sign Up

Build dynamic UI-components

  • 1.  Build dynamic UI-components

    Posted 06-05-2025 19:09

    SvenS | 2018-08-22 05:22:59 UTC | #1

    How it is possible to build dynamic UI components? Concret

    • one inputtext component and one combobox component
    • if something is entered in the inputtext field the input in the combobox is optional otherwise

    the input is required / not optional

    is there a way to implement this?


    tim.smith | 2018-08-23 15:48:44 UTC | #2

    You won't be able to make use of the required setting on fields; you'll need to make them all optional. Then you can create a dynamic true/false variable with a condition to determine if the fields have been filled out per your rules.

    As a simple example, consider a scenario where the agent must collect a name, either as first and last or as a single full name. I created three text inputs that store to variables FirstName, LastName, and FullName. I created a dynamic true/false variable with the following logic: (length({{FirstName}}) > 0 and length({{LastName}}) > 0) or (length({{FullName}}) > 0). The variable will be true if the first and last names are set or if the full name is set. You can then use this variable in a conditional action to allow or prevent the agent from saving the data or going to the next page, for example.


    system | 2018-09-23 15:48:46 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 3417