Checkbox validator

Rizky.Tuasikal September 21, 2022

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 _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 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.

Rizky.Tuasikal September 22, 2022

Im using JMWE right now,

should I use Field Required Validator (JMWE app)?

can you help me to explain the query?

checkbox.JPG

Rizky.Tuasikal September 22, 2022

Hi @Alex Koxaras _Relational_ ,

 

Please, I need your help.. 

 

Thank you in advance

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 22, 2022

Yup, that's the one!

Rizky.Tuasikal September 22, 2022

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

please..

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 22, 2022

@Rizky.Tuasikal 

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

conditional validator.png

Rizky.Tuasikal September 22, 2022

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 _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 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)
Rizky.Tuasikal September 22, 2022

it works!!!

thank you so much @Alex Koxaras _Relational_ 

God bless you

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 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
AUG Leaders

Atlassian Community Events