- 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 03:01 AM
Hi Omkar,
You can create an onload client script and fetch the region for that user and if it matches Europe then hide the shortDescription and description field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:03 AM
Hi @kunal20 ,
Thank you for your reply.
I tried using Client Script but it working slow like takes few seconds to hide the field and it is not working for the list view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:14 AM
tried using ui policy for the same? yes client script will not be executed for the list view, for that you will have to create an ACL separately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:16 AM
So rather than using 2 modules i.e. UI policy and ACL, I think we can use the only ACL as I have to completely hide the field. But not sure the way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 03:19 AM
Still you will have to create two ACL's as one will act on form and other on list view