- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 03:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 03:39 AM
Hi Shweta,
You can do this using ui policy (if service catalog then catalog ui policy)But It will set only mandatory variable not readonly.But their is no point to make both readonly and mandatory at once.
I applied to one variable please check SS
and the result is
IIf my answer helped you in any way, please then mark it as helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 03:37 AM
Hi there,
If a field is empty, though read-only, how can it be mandatory? What you are asking sounds a bit contradictory.
Can you explain your functional case?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 03:39 AM
Hi Shweta,
You can do this using ui policy (if service catalog then catalog ui policy)But It will set only mandatory variable not readonly.But their is no point to make both readonly and mandatory at once.
I applied to one variable please check SS
and the result is
IIf my answer helped you in any way, please then mark it as helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 04:11 AM
I think it is possible that a field could be mandatory and readonly. For example in the image you shared , the field Requested for is mandatory and read only at the same time. It is functional because it is autopopulated by a value. I think the requirement is somthing like that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 04:32 AM
Yes, May be