How to make fileds read only on a form at backend but the same fileds should be editable on portal

Sanket Pawar
Tera Contributor

I have catalog item ,the requiremnt is that,the fileds should be editable on the portal but the same fileds should be read only a backend.

How this can be achived?

any suggestion will be helpful

3 REPLIES 3

Martin Ivanov
Giga Sage
Giga Sage

Create two client scripts

- one to make the fields read only - with UI type Desktop

- one to make them editable (if not editable by default) - with UI type Mobile/Service portal

 

MartinIvanov_0-1699520328672.png

 


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

@Sanket Pawar Did my answer help you resolve your issue? Do not forget to mark it as Correct.


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

yaswanthi2
Giga Sage

Hi @Sanket Pawar 

In catalog client script select the UI type as desktop and add your code in script then this will execute in form and it wont apply in portal