Request to enhance input variable handling by enabling validation based on another variable's value and conditionally disabling specific input variables.
long-term
O
Oxblood Barracuda
It would be highly beneficial to introduce functionality for validating an input variable based on the value of another variable. Additionally, a toggle feature to dynamically enable or disable a group of input variables depending on a prior variable's value would improve usability and logic control.
For example:
Scenario 1 (Validation): If variable_A = "abcd", validate variable_B against specific criteria.
Scenario 2 (Toggle): If variable_A = "abcd", automatically disable or ignore input for variable_C, variable_D, and variable_E.
Log In
Rohan Gupta
Merged in a post:
how to populate the value of Variable B based on the value of Variable A in a Harness
E
Established Canidae
How to populate the value of Variable B based on the value of Variable A in a Harness
Variable A:
The value of Variable A uses <+input> to allow user input.
allowedValues restricts the input to predefined options like Option1, Option2, and Option3.
Variable B:
The value of Variable B is determined dynamically based on the value of Variable A using Harness's expression language.
Logic:
If Variable A is Option1, then Variable B is set to ValueForOption1.
If Variable A is Option2, then Variable B is set to ValueForOption2.
If Variable A is Option3, then Variable B is set to ValueForOption3.
The else block provides a fallback value if none of the conditions are met.
O
Oxblood Barracuda
Hi Ankit,
Can we get this prioritised ?? could you please provide an ETA
Rohan Gupta
long-term