- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 02:13 AM
Hi All,
I have a requirement to Hide the Incident fields(from form and list view) from the table itself.
Condition is - Fields from incident ticket like short_description, description should be hidden, which are set to Region = Europe.
It should be a server side script like ACL so it should not a have any delay hiding the fields.
Please let me know how I can achieve this requirement.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:28 AM
@Omkar Jori add below code in script section. Replace u_region with your region field name.
if (current.u_region == 'Europe')
answer = false;
.If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 02:54 AM - edited 07-21-2023 02:56 AM
Hello @Omkar Jori
You need to use the Field Level Read ACL for both the fields --
var gr = new GlideRecord('table_name');
gr.addQuery('region', 'Europe');
gr.query();
while(gr.next()){
answer=false;
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:14 AM
Hi @Samaksh Wani ,
Thank you for your reply
Could you check the below screenshot, Is I am doing something wrong ? It is not working
ACL:
Note: The users having DPA role should not be able to see the records.
Output:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:28 AM
@Omkar Jori add below code in script section. Replace u_region with your region field name.
if (current.u_region == 'Europe')
answer = false;
.If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:33 AM - edited 07-21-2023 03:40 AM
Hi @SANDEEP28
it is working with this script. Thank you