I want to grey out a field if the user chose a specific value for two of the fields above it.
WFA allows a limited User-Input dependency. I know it will not cover a lot of cases, but lets see.
A given user-input can have dependency on one of the other User-Inputs. Only one, not more. And you need to specify the valid values for the parent/dependee User-Input. The dependent/child User-Input will be greyed out if the parent User-Input is provided with a value other than the one specified.
Here the User-Input wfa_name has dependency on other user-input wfa_ip and the valid values applicable are 10.20.30.40, 10.20.30.41
So when the value for wfa_ip are either 10.20.30.40, 10.20.30.41 , the user-input wfa_name is available. Else for other values of wfa_ip, wfa_name will be greyed out and nothing will be sent to the command for execution.
Now you can't make a User-Input dependent on 2 or more other user-inputs. So what can you do? I can suggest some options
1. Try to see if a chain dependency can work for you. User-Input A-> B and B->C
2. Dependency capability prevents the executor for providing values. But if you are okay that executor can provides value, but workflow will fail in preview/planning and execution is not proceeded.
Povide elaborated display Name for the User-Inputs and also descripition. This would allow the workflow executors to read and userstand the inputs they may give. Provide MVEL expressions in Advanced tab selecting "execute this command : if the following expression is true"
And to Abort the workflow execution if the given set of User-Inputs are not among the provided value. The error message can be provided to the executor to understand what was wrong.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.