How to make "Requested for" read only on the Order Guide Check Out page

pvijaysen
Giga Contributor

Hi ,

 

I want to make the "Requested for" read only on the Order Guide Check Out page.

 

Can you please direct me where to navigate to make that field read only.

 

Please check the attachment for more info.

 

Thanks

Vijay

1 ACCEPTED SOLUTION

pvijaysen
Giga Contributor

Hi Jamie,


We did this other way around by doing below steps:



We have achieved this by creating the property : glide.sc.req_for.roles


Type: String


value : admin.



By doing this except admin roles all other roles can just view the field. Only admin can edit the field.



I really appreciate your comments.



Thanks


Vijay


View solution in original post

6 REPLIES 6

jamie_girouard
Giga Expert

Vijay,



I believe you'll need to set up a service catalog UI policy:



Service Catalog UI Policy - ServiceNow Wiki.



Hope that helps,
Jamie


pvijaysen
Giga Contributor

Hi Jamie,


Thanks for the reply!!!



I have requested for field on order guide for submitting a request. If i make that read only then nobody can make a request.


I need to make the filed read only on the order Check out page or form.


Since UI policies can be only applied when the variables are present in a Requested Item or Catalog Task form (starting with the Calgary release).




But i need to apply on the Check out form.




Appreciate your comments.




Thanks


Vijay


jamie_girouard
Giga Expert

Vijay,



I think you might need to modify the servicecatalog_cart_template under UI Macros.   You'd probably have to add some javascript to make the requester field read only.


pvijaysen
Giga Contributor

Thanks Jamie,



I'm currently work on the script to make the field read-only under UI macro's.



Will reply once i fix that.



Regards,


Vijay