- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 12:52 AM - edited 12-03-2024 03:40 AM
Hi Experts,
Could you please help me making the fields of Update ALL/Update selected form read only using Client script or UI policy.
As we do not want user to update particular fields using bulk update functionality.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2024 08:19 AM
Hi @Harshal Aditya ,
How about this.
create a new view and remove the field that you don't want the users to edit and update the "Update all" and "Update selected" context menu (sys_ui_context_menu) and put the force the users to be new view by setting
sysparm_view to new view that's created.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 03:38 AM
Hi @Chaitanya ILCR - Thanks it works.
So no way we can use client script and UI policies right ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 06:36 AM
Hi @Harshal Aditya ,
as you have mentioned the client script and UI policies are not working.
you can either follow the first method or I see not so recommended solution as well
set the field that you don't want the users to update to readonly on dictionary level and create a onload client script to make them editable based on the URL. if the URL contains incident_update then don't do anything else(with existing condtions if any) make the fields readonly(not recomending this but I can see this as one more solution)
Regards,
Chaitanya