We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to make fields read only on "Update All" / "Update Selected"

Harshal Aditya
Mega Sage

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 

 

 

1 ACCEPTED SOLUTION

Chaitanya ILCR
Giga Patron

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

View solution in original post

6 REPLIES 6

Hi @Chaitanya ILCR - Thanks it works.
So no way we can use client script and UI policies right ?

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