- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2020 05:13 AM
Hello,
I have the following requirement.
I want to have a field on Service Portal's form, that is read only. It will contain a value but the end user can not change it.
Is this possible?Any ideas?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2020 05:44 AM
Hi,
you can create onload catalog client script and
1) set the UI Type as Mobile/ Service Portal so that this script executes only for portal and not for native
2) Applies to Catalog Item - true
3) Catalog item - Select your catalog item
4) Type - onLoad
5) Applies on Catalog Item view - true
function onLoad(){
g_form.setReadOnly('city', true);
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2020 05:21 AM
Can you share a print screen of the page the field is on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2020 05:26 AM
Hi,
Is that field required to be read-only only for portal and not for native?
please provide some screenshots for help
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2020 05:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2020 05:33 AM
If its possible, I want it to be read-only only for the portal.