Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Checkbox field behaviour

Edited

Hi Team,

I wish to write a behaviour for checkbox field with only one option. If it's selected then a additional fields gets unhidden and mandatory .

Following is the code i am trying:

def field = getFieldByName("Blocked Reason")
def checkbox = getFieldByName("check")

def selectedOption = checkbox.getValue()
if( selectedOption=="block")
{

field.setHidden(false)
field.setRequired(true)

}
else {

field.setHidden(true)
field.setRequired(false)

}

Kindly help me if there is corrrect way to fetch checkbox fields ?

 

 

1 answer

0 votes
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 17, 2021 • edited

Hi @Priyanka Nimbalkar 

 Try below code for checkbox

 if (checkboxfield.contains("block"))

 Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events