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 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

Control visibility (condition to hide)

This is an example of how to use dependant fields and condition to hide in order show the the End-user different controls in the user step based on what has previously been selected.

PreviousExpression sourceNextConfigure SSO for Microsoft Entra

Last updated 7 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 items.

let perishable = [{name: "Ice Cream", category: "perishable"}, {name: "Lettuce", category: "perishable"}];
let nonPerishable = [{name: "Canned Beans", category: "non-perishable"}, {name: "Sugar", category: "non-perishable"}];

return perishable & nonPerishable;

Create and connect controls

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

  • Create a List selection control in the user step.

    1. Set Source to be items.

    2. Set the Prompt to be What type of product are you receiving?.

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

    4. Set the Target Variable to be item.

  • Create a Date input in the user step.

    1. Set the Prompt to be Expiration date.

    2. Set the Condition To Hide to be {item.category != "perishable"}

    3. Set the Merge Behaviour to 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 list selection and select Ice Cream.

    1. Notice that the date input is now being shown as the chosen option category is perishable.

  4. Set a date in the date input.

  5. Open the list selection and select Canned beans.

    1. Notice that the date input is hidden as the chosen option category is not perishable.

  6. Open the list selection and select Lettuce.

    1. Notice that the date input is now being shown as the chosen option category is perishable.

    2. Notice that the date input contains your previous input as the control has been set to Keep my local changes.

Test the user step with discard my local changes

  1. Open the Application in the Designer.

  2. Open the User step.

  3. Set the date input Merge Behaviour to Discard my local changes.

  4. Save the Application.

  5. Start the Application in any client.

  6. Open the list selection and select Ice Cream.

    1. Notice that the date input is now being shown as the chosen option category is perishable.

  7. Set a date in the date input.

  8. Open the list selection and select Canned beans.

    1. Notice that the date input is hidden as the chosen option category is not perishable.

  9. Open the list selection and select Lettuce.

    1. Notice that the date input is now being shown as the chosen option category is perishable.

    2. Notice that the date input have discarded your previous input as the control has been set to discard my local changes.

⏸️
Application
Application package
Allow Dependencies