Hello All,
we have two custom fields in our project one is Multi check box and "Other" was text filed.
When an option called "other" is checked then the custom field "Other" should show up with required. If any other option is selected then "Other" Custom field should be hide.
Test Stage Required to Reset or Reboot ( check box field) - customfield_13639
Other (Text box field) - customfield_14801
If you have Scriptrunner, you can create a relatively straightforward Behavior as follows. In this example, if the Microservice Type field is set to 'Other', the Microservice Other field is both visible and required. Otherwise, it is not.
In this particular example, the Microservice Type field is a single-select list, so it would work in your environment only if Other is the only option selected. If you want the field to be visible if Other is selected along with other options, you'd want the if statement to look like this:
if (micServValue.toString().contains("Other"))
This is because the value of the multi-select list is actually an array of options.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.