- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 05:42 AM - edited 03-11-2024 05:52 AM
hi
When I am trying to omit a New button of a Related List using script for a active field.If it is true it should new button if active is false it should not show new button
The thing is, it is hiding for both active false and true.
this is the code i have used.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 05:47 AM
Please try below code:
var answer;
if (parent.active == "true" || parent.active == true) {
answer = true; // Set to true to hide New button
} else {
answer = false; // Set to false to show New button
}
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 05:47 AM
Please try below code:
var answer;
if (parent.active == "true" || parent.active == true) {
answer = true; // Set to true to hide New button
} else {
answer = false; // Set to false to show New button
}
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks