For a Particular form view make a section's fields Read only for all users

Niletor
Tera Contributor

I have a Form of Request for which has 4 views out of which for 2 Particular views I want to make a section's all 3 fields to be Read-only for all users/roles, on these two views. How should I approach this 

1 ACCEPTED SOLUTION

Moin Kazi
Kilo Sage
Kilo Sage

Hi @Niletor ,

 

You can create UI Policy on Specific View - For that you have to uncheck Global check box and in the View field, provide View name(Example - Service Portal) then your UI policy will only applicable for selected view. And create UI Policy Action to set your field as ReadOnly.

 

Please find few images for this -

MoinKazi_0-1728543388987.png

MoinKazi_1-1728543432183.png

 

Output -

MoinKazi_2-1728543487264.png

 

Mark MoinKazi_3-1728543536369.png Correct if this solves your issue and also mark MoinKazi_4-1728543536369.png Helpful if you find my response worthy based on the impact.

 

Regards

Moin

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Niletor 

 

You can use the UI policy and in UI policy you can use the specific view where you want to make fields read only.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Moin Kazi
Kilo Sage
Kilo Sage

Hi @Niletor ,

 

You can create UI Policy on Specific View - For that you have to uncheck Global check box and in the View field, provide View name(Example - Service Portal) then your UI policy will only applicable for selected view. And create UI Policy Action to set your field as ReadOnly.

 

Please find few images for this -

MoinKazi_0-1728543388987.png

MoinKazi_1-1728543432183.png

 

Output -

MoinKazi_2-1728543487264.png

 

Mark MoinKazi_3-1728543536369.png Correct if this solves your issue and also mark MoinKazi_4-1728543536369.png Helpful if you find my response worthy based on the impact.

 

Regards

Moin

Thanks for it, It worked correctly 

Can you also tell how to Hide a Section in a Form for a Particular View