Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,377
Community Members
 
Community Events
168
Community Groups

Checkbox validator

I have checkboxes that have a few values :

  • value1
  • value2
  • value3
  • other

now, how to make a condition,

if the user choose "other" value, the user must fill another field (free text field, to decribe the Other value)Impact to.JPG

1 answer

1 accepted

2 votes
Answer accepted
Alex Koxaras Community Leader Sep 22, 2022

Hi @Rizky_Tuasikal 

For that to happen, you have to have an application, like JMWE, JWT, JSU or scriptrunner, which allow conditional validators on field. This mean that you can add a PF that  "Others (Impact To)" field is required ONLY WHEN the "others" selection is selected.

Im using JMWE right now,

should I use Field Required Validator (JMWE app)?

can you help me to explain the query?

checkbox.JPG

Hi @Alex Koxaras ,

 

Please, I need your help.. 

 

Thank you in advance

Alex Koxaras Community Leader Sep 22, 2022

Yup, that's the one!

Can you show me the query ? to achieve what I said before..

please..

Alex Koxaras Community Leader Sep 22, 2022

@Rizky_Tuasikal 

Replace all necessary fields from the rectangle below, with your corresponding fields

conditional validator.png

I got it, but one more question,

if the user choose value 1 & other at the same time,

 

Should I use != "Others", instead "==" , right?

Alex Koxaras Community Leader Sep 22, 2022

Nope. Leave it as is and test scenarios:

  • Users chooses only Other
  • User chooses Other and a second choice
  • User chooses one or more choices (except Other)

it works!!!

thank you so much @Alex Koxaras 

God bless you

Alex Koxaras Community Leader Sep 22, 2022

Cool! Kindly mark my answer as accepted, in order to help others! Thank you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events