Expression source
This is an example of how to use dependent fields and source show the the End-user different controls in the user step based on what has previously been selected.
Last updated
Was this helpful?
This is an example of how to use dependent fields and source show the the End-user different controls in the user step based on what has previously been selected.
Last updated
Was this helpful?
Create a new in an and open it in the Designer.
Add a User step in the App.
Add a Script step and connect it to the User step with a data arrow.
Add the following script to the Script step and set its target variable to electronics.
Add a new Script step and connect it to the User step with a data arrow.
Add the following script to the newly created Script step and set its target variable to furniture.
Add a new Script step and connect it to the User step with a data arrow.
Add the following script to the newly created Script step and set its target variable to apparel.
Check the Allow Dependencies checkbox in the User step General section.
Create a Text Input control in the user step.
Set the Prompt to What are you looking for?
Set the Target Variable to be product.
Create a List Selection in the user step.
Set the Prompt to Choose specific item.
Set the Source to be an expression and set the expression to be the following
Set the Large Row Text to be {name}.
Set the Inline option to Open
Save the Application.
Start the Application in any client.
You can now see that options in the List selection contain all nine items that were provided in the script steps.
Type Electronics in the Text input.
As you type you can see that the options in the List selection below are limited to only electronics.
Type Jacket in the Text input.
As you type you can see that the options in the List Selection below are limited to only Jackets.
Open the Application in the designer.
Open the user step and select the list selection
Change the source expression to the following
Save the Application.
Start the Application in any client.
You can now see that options are limited to only Electronics
Type Furniture
As you type you can see that the options in the List selection below are limited to only furniture.