Hello,
i'm trying to create a scriptrunner validator for a checkbox.
I don't care about the option, because is just one option, i wanna know if the user selected it or not.
This is not working:
issue.customfield_10135.value != null
Thanks
Hi Josep,
I can confirm we have some example snippets for validators located here and the example on line 55 shows an example of how to validate when a checkbox field has a certain valiue set in it and this will help you to create the validator that you require.
I hope this information helps.
Regards,
Kristian
hello, that is not working sorry.. that information is incorrect. thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
welcome to the community!
If you don't care what option is selected, you can just use the "Field Required Validator".
Then you don't need to script anything.
Please let me know if this does not work for you.
- Tessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello, no, because i have to check more fields, for example, if its selected, two more fields are required too, if its not selected, we wont need others fields validators
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.