Is it possible to define the mandatory nature of a user parameter according to the value entered for another parameter?
For example, if the first parameter is checked, then the second must be filled in. Otherwise, the second parameter is not mandatory.
Thanks for your help
Page 1 / 1
You can do the following:
- Start with a User Parameter Yes/No (required)
- Add a User Parameter Text, required, and only visible when the Yes/No parameter is checked
- Add a second User Parameter Text, not required, and only visible when the Yes/No parameter is unchecked
- Add a third User Parameter Text, not required and not published, and set its default value to the concatenation of the first and second text
Access the value of this last User Parameter in your workspace.
See the attachment for a very basic workspace.
If you use conditional visibility (show parameter 2 only when parameter 1 is yes) and parameter 2 is required, it will ignore the requirement if it is hidden. Tested this in 2023.2.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.