Overview
The Input Form Node in Scade.pro lets users enter data at any point in the workflow. Unlike the Start Node, which collects initial user inputs in published app, this node can be added anywhere to gather extra or missing information as needed.
Key differences from the Start node
Start Node: Essential for publishing an app, this node defines the initial parameters required from the user when the workflow begins.
Input Form Node: Functions similarly to the Start Node but is not a mandatory first step. It allows for input collection throughout the workflow, enabling dynamic configurations and missing data retrieval.
Supported input types
Both the Start Node and Input Form Node support the following input types:
Text: Allows users to enter a single line of text.
Number: Accepts numerical values.
Boolean: Provides a toggle for true/false values.
Dropdown: Offers a predefined list of selectable options.
How to use on Scade
Example 1: Configuration flexibility
When building a workflow, you may want to separate user-required inputs (provided at the start) from configurable parameters that you need to adjust without user intervention. In this case:
The Start Node is used to collect essential inputs from the user.
The Input Form Node is added next in the flow to handle configurable parameters that should not be included in the Start Node.
The workflow proceeds based on both sets of inputs.
Example 2: Conditional data collection
The Input Form Node can be used in combination with a Conditional IF Node to handle scenarios where some required inputs may be missing:
The workflow starts and checks if certain data is provided.
A Conditional IF Node evaluates whether the necessary data exists.
If data is missing, the flow redirects to a Input Form Node, prompting the user to enter the required information.
Once collected, the workflow continues as intended.
β
Benefits
Flexible placement: Can be used at any stage of the workflow.
Enhanced user experience: Reduces unnecessary input requirements at the start.
Conditional logic integration: Works well with IF nodes to ensure required data is obtained before proceeding.
Efficient workflow management: Allows to modify parameters without modifying the Start Node.
By using the Input Form Node, its possible to create more adaptable and user-friendly workflows while maintaining structured and logical data input handling.