Flow Connect Help
Roadmap
  • ℹ️This is Flow Connect
    • Overview
    • Technical overview
      • System requirements
    • What's new?
      • Change log
  • ▶️quick start
    • Create an application
    • Create an admin access group
  • 🔁working with Connect
    • Connect to systems
      • Connector agents
        • Add agent group
        • Install agent manager
        • Add agent
        • Manage agent
      • Connectors
        • IFS Applications 10
        • Oracle
        • Microsoft SQL Server
        • Send Email
        • REST
          • Microsoft Graph API
          • Infor M3 REST
            • Obtaining Infor ION API file
            • Configure REST Connector with ION API file
          • IFS Cloud
            • IAM Client Registration
            • Obtaining end-point info from IFS Cloud
            • Configure REST Connector for IFS Cloud
      • Redirect URIs
    • Create and design
      • Application packages
      • Applications
        • Create
        • Design
        • Test
        • Commit
      • Portal Pages
        • Create Portal Page
        • Design Portal Page
        • Commit Portal Page
      • Components
        • Create component
        • Manage component
      • Modules
        • Create module
        • Manage module
      • Automations
        • Functionality
        • Create Automation
        • Manage Automation
        • Creating Access Key
    • Deploy
      • Environments
      • Deploy
    • Use
      • On mobile devices
      • In web browser - Web client
      • In web browser - Portal
    • Share
      • Share Applications
    • User administration
      • Users
        • Invite a new user
        • Manage users
      • User groups
        • Create user groups
        • Manage user groups
      • Access
        • Manage access
  • ⏸️Reference
    • How-to guides
      • Create User Step controls
        • Header
        • Static text
        • Labelled static text
        • Link
        • Image viewer
        • Text input
        • Numeric input
        • Date input
        • Time input
        • Check box input
        • Binary option input
        • List selection input
        • List multi-selection input
        • Menu selection input
        • Data grid
        • Calendar control
        • Image selection input
        • List presentation
        • Camera Input
      • Dependent controls in User step
        • Variable source
        • Expression source
        • Control visibility (condition to hide)
      • Configure SSO for Microsoft Entra
    • Reference
      • Clients
        • Settings
        • My data
      • Designer
        • Controls
          • Header
          • Static text
          • Labeled static text
          • Link
          • External app launcher
          • Image viewer
          • Text input
          • Numeric input
          • Date input
          • Time input
          • Check box input
          • Binary option input
          • List selection input
          • List multi-selection input
          • Menu selection input
          • Data grid
          • Calendar
          • Image selection input
          • List presentation
          • Camera input
          • File gallery
          • GPS location input
          • Signature capture input
          • Item creation sub task
          • Check list sub task
          • Verb sub task
        • Steps
          • Start
          • User interaction
          • External system
          • Decision
          • Assertion
          • HTTP requests
          • Assignment
          • Table
          • Event listener
          • Checkpoint
          • Script
          • Annotation
          • End
          • Local data resource
      • Portal
        • Design items
          • Portlets
            • Accumulation chart
            • Base chart
            • Circular gauge
            • Custom content
            • Data tree
            • Document viewer
            • Filter
            • Kanban
            • KPI card
            • Link
            • My apps
            • Record
            • Rich text
            • Table
          • Container
          • Common portlet configuration
            • General
            • Events
            • Data
            • Custom buttons
            • Style
        • Portal settings
          • Branding
          • Page
          • Navigation
        • Profile
        • Portlet actions
        • Cache
        • Input to Start Step
      • Diagnostic mode
      • FlowScript
        • Walkthrough
          • Introduction
          • Expressions and programs
          • Anatomy of a program
          • Variables
          • Simple types
          • Nullable types
          • Records
          • Sequences
          • Other types
          • Arithmetic
          • Other expressions
          • Queries
          • Conditionals and loops
          • Function definitions
          • Built-in functions
          • DateTime module
          • Seq module
          • HTTP module
          • CSV module
          • JSON module
          • Trace module
          • Record module
          • XML Module
          • Custom modules
          • Custom Types
          • Appendix: Subtyping rules
          • Appendix: Escape sequences
          • Appendix: Type checking errors
      • Flowscript Copilot
      • Glossary
    • Flow Connect Downloads
      • Install Flow Connect Designer
    • Migrate from Flow Classic
      • Portal - migrate from Flow Classic
      • Classic vs. Connect Comparison Guide
Powered by GitBook
On this page
  • Create an App with steps and input data
  • Create and connect controls
  • Test the user step with where filtering
  • Test the user step with a case expression

Was this helpful?

  1. Reference
  2. How-to guides
  3. Dependent controls in User step

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.

PreviousVariable sourceNextControl visibility (condition to hide)

Last updated 6 months ago

Was this helpful?

Ensure that is set to true for the user step. The user step must allow dependencies for this functionality to work properly.

Create an App with steps and input data

  1. Create a new in an and open it in the Designer.

  2. Add a User step in the App.

  3. Add a Script step and connect it to the User step with a data arrow.

  4. Add the following script to the Script step and set its target variable to electronics.

    return [
        {name: "Laptops", category: "Electronics"}, 
        {name: "Monitors", category: "Electronics"}, 
        {name: "Printers", category: "Electronics"}
        ];
  5. Add a new Script step and connect it to the User step with a data arrow.

  6. Add the following script to the newly created Script step and set its target variable to furniture.

    return [
        {name: "Desks", category: "Furniture"}, 
        {name: "Chairs", category: "Furniture"}, 
        {name: "Cabinets", category: "Furniture"}
        ];
  7. Add a new Script step and connect it to the User step with a data arrow.

  8. Add the following script to the newly created Script step and set its target variable to apparel.

    return [
        {name: "Shirts", category: "Apparel"}, 
        {name: "Pants", category: "Apparel"}, 
        {name: "Jackets", category: "Apparel"}
        ];

Create and connect controls

  • Check the Allow Dependencies checkbox in the User step General section.

  • Create a Text Input control in the user step.

    1. Set the Prompt to What are you looking for?

    2. Set the Target Variable to be product.

  • Create a List Selection in the user step.

    1. Set the Prompt to Choose specific item.

    2. Set the Source to be an expression and set the expression to be the following

      {apparel & furniture & electronics where name like ("%" & product & "%") or category like ("%" & product & "%")}
    3. Set the Large Row Text to be {name}.

    4. Set the Inline option to Open

Test the user step with where filtering

  1. Save the Application.

  2. Start the Application in any client.

  3. You can now see that options in the List selection contain all nine items that were provided in the script steps.

  4. Type Electronics in the Text input.

    1. As you type you can see that the options in the List selection below are limited to only electronics.

  5. Type Jacket in the Text input.

    1. As you type you can see that the options in the List Selection below are limited to only Jackets.

Test the user step with a case expression

  1. Open the Application in the designer.

  2. Open the user step and select the list selection

  3. Change the source expression to the following

    {case when "Electronic" like ("%" & product & "%") then electronics when "Furniture" like ("%" & product & "%") then furniture else apparel end }
  4. Save the Application.

  5. Start the Application in any client.

  6. You can now see that options are limited to only Electronics

  7. Type Furniture

    1. As you type you can see that the options in the List selection below are limited to only furniture.

⏸️
Application
Application package
Allow Dependencies