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
        • Executing Automations Externally
          • IFS Cloud
          • Salesforce Apex Trigger Example
    • 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 list controls
  • Test the user step with keep my local changes
  • Test the user step with discard my local changes

Was this helpful?

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

Variable source

PreviousDependent controls in User stepNextExpression source

Last updated 7 months ago

Was this helpful?

This example demonstrates how to set up dependencies between controls in a user step to affect the data output shown to the End-user.

The example is based on the source being a variable.

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. Create a User step and bind it to the start step with a sequence arrow.

  3. Create a Script step and add a data arrow to the user step.

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

let pens = [{name: "Red pen"}, {name: "Green pen"}, {name: "Blue pen"}];
let papers = [{name: "Paper (single)"}, {name: "Paper (multiple)"}];
let boxes = [{name : "Small box"}, {name: "Big box"}];

let paperAndPen = {name: "Paper and Pen", value: pens & papers};
let penCategory = {name: "Pens", value: pens};
let storage = {name: "Storage", value: boxes};

return [paperAndPen, penCategory, storage];

Create and connect list controls

  1. Check the Allow Dependencies checkbox in the user step general section.

  2. Create a List selection control in the user step.

    1. Set Source to be categories.

    2. Set the Prompt to be Category.

    3. Set the Large Row Text to be {name}.

    4. Set the Target Variable to be category.

  3. Create another List selection in the user step.

    1. Set Source to be category.value.

    2. Set the Prompt to be Item.

    3. Set the Large Row Text to be {name}.

    4. Set the Selection reload behaviour to be keep my local changes.

Test the user step with keep my local changes

  1. Save the Application.

  2. Start the Application in any client.

  3. Open the category list selection and select Paper and pen.

  4. Open the item list selection.

    1. You can now see that you options are limited to only the pens and papers.

      1. Red pen

      2. Blue pen

      3. Green pen

      4. Paper (single)

      5. Paper (multiple)

    2. Select the Red pen

  5. Open the category list selection and select Pens.

  6. Open the item list selection.

    1. You can now see that the Red pen is still selected since it is still a valid option to select and the control has been set to Keep my local changes.

    2. You can see that your options are limited to only pens.

      1. Red pen

      2. Green pen

      3. Blue pen

  7. Open the category list selection and select Storage.

  8. Open the item list selection.

    1. You can now see that the Red pen is no longer selected since it is no longer a valid option.

    2. You can see that your options are limited to only boxes.

      1. Big box

      2. Small box

Test the user step with discard my local changes

  1. Open the Application in the Designer.

  2. Open the User step with the List controls.

  3. Open the item list selection.

  4. Set the Selection reload behaviour to be discard my local changes.

  5. Repeat step 1 - 5 in from the previous example of Test Reload Strategy Keep Changes.

  6. Open the item list selection

    1. You can now see that the Red pen is not selected anymore after the change of the category due the control being set to Discard my local changes.

    2. You can see that your options are limited to only pens.

      1. Red pen

      2. Green pen

      3. Blue pen

⏸️
Application
Application package
Allow Dependencies