Hello,
I am trying to make 2 fields mandatory on a workflow transition using a validator. We don't have JSU, instead we use Scriptrunner. I am using a simple scripted validator. Below is the code I am using:
cfValues['Digital Initiatives', 'Innovation']
When I update the fields I still get the error message that the fields are required and it won't let me go any further.
Try the following instead:
cfValues['Digital Initiatives'] && cfValues['Innovation']
If you want each field to report that they are required separately, create 2 separate simple scripted validator, then you can customize the message and field for each.
The downside to using only scriptunner simple scripted validator is that by default users will not know the field is required until they submit it. Try using a behaviour at the same time to provide a visual clue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.