Once the state is closed the time card related list new button will be hidden in incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2024 06:16 AM - edited 07-04-2024 06:20 AM
Hi,
Once the state is closed the time card related list new button will be hidden in incident form.
Can anyone please help on this, It will be usefull.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2024 06:31 AM
Hi @mania,
To hide the "New" button on the related list:
- Right-click on the related list and select Configure > List Control.
- The List Control form will open. Right-click on the form header and select Configure > Form Layout.
- Move the "Omit new condition" field to the "Available" section.
- Write the condition script to hide the "New" button based on your specific conditions.
if(current.state == '7'){ //when state is closed
answer = false;
}else {
answer = true;
}
If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2024 06:44 AM - edited 07-04-2024 06:46 AM
It is hidden normally when state is new but i want to state is closed and also i have given backed value of closed is correclty so can you suggest.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2024 06:47 AM
Write condition on Omit new condition field to hide the new button
if(current.state == '7'){
answer = false;
}else {
answer = true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2024 07:42 AM