- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 01:59 AM
I want to omit the 'New' button under the change tasks tab of a change request if the state of the change request is "Review." I am using the code below but it seems to be not working:
Any ideas or suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:09 AM - edited 04-30-2024 02:12 AM
HI @Jeremyramirez12 ,
TRY
var answer;
if(parent.state == '0') { //pass the state value instead of label text , Pass the value as per your system . in my sys its 0
answer = true;
}else {
answer = false;
}
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:01 AM
Hi Jeremy,
Are you sure with State label and value. Ensure you pass state value instead of label.
Also, it should be parent.state and not parent.State
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:04 AM
Did you try with List control
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:09 AM - edited 04-30-2024 02:12 AM
HI @Jeremyramirez12 ,
TRY
var answer;
if(parent.state == '0') { //pass the state value instead of label text , Pass the value as per your system . in my sys its 0
answer = true;
}else {
answer = false;
}
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 02:19 AM
Worked! Thank you!