You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Here is my script but it gives error ;
def Welches System = getFieldById("customfield_25108")
def Welcher Service/Betroffene Kachel = getFieldById("customfield_25203")
if(Welches System.getValue()){
def selectedOption = Welches System.getValue() as String
if(selectedOption == "MKH"){
Welcher Service/Betroffene Kachel.setHidden(true)
Welcher Service/Betroffene Kachel.setRequired(false)
}else{
Welcher Service/Betroffene Kachel.setHidden(false)
Welcher Service/Betroffene Kachel.setRequired(true)
}
}
what I am wanting if the customfield_25108 is as a value select "MKH" then my other cascade type customfield_25203 hidden(true) and requied(false)
the other options for my customfield_25108 ;
"None"
"NKH"
When selected value as "NKH" then customfield_25203 required(true)
Hi @Cem Tuğrul , thanks for your question.
I've tested the script in a similar manner in my instance and it's working. Are you sure you've added the script to the correct field in the behavior?
For example, as I indicated in the screenshot, since my variable field is "assetCF", I selected it from the field section and added the script to it. Please double-check, and if the issue persists, could you please provide more information?
Best,
Murat Seven
Hi Murat,
I have changed as below then it is working now. (Çok saol Hocam)
def WelchesSystem = getFieldById("customfield_25108")
def WelcherServiceBetroffeneKachel = getFieldById("customfield_25203")
if(WelchesSystem.getValue()){
def selectedOption = WelchesSystem.getValue() as String
if(selectedOption == "MKH"){
WelcherServiceBetroffeneKachel.setHidden(true)
WelcherServiceBetroffeneKachel.setRequired(false)
}else{
WelcherServiceBetroffeneKachel.setHidden(false)
WelcherServiceBetroffeneKachel.setRequired(true)
}
}
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.