How to set HTML variable read only in a catalog item in Istanbul version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2017 11:47 PM
hello Team,
I have tried below steps to make the HTML variable read only in the catalog item but it doesn't work.
1) Create a catalog client script " On load" with below script:
function onLoad()
{
g_form.setReadOnly('variable_name',true);
}
2) Created a Catalog UI policy and made the variable read only.
3)Set "Create roles" and "Write roles" to "nobody" on the HTML variable.
None of these techniques work to make the HTML variable read only. Please let me know if there is any way out on this.
Thanks,
Sreejith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2017 12:55 AM
Yaa, That doesn't matter it can be same but case sensitive.
It should work. Not sure what went wrong in your case !!
Thanks,
Santo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2017 03:37 AM
Yeah, something is missing as it's working in my developer instance but not in my official one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2017 03:48 AM
Try creating one more HTML variable and write UI policy. leave the old one !! let us give a try.
Thanks,
Santo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2017 12:05 AM
Hello Nair,
Can you please cross verify the UI Type in the client script?
It should be all.
ServiceNow Commnunity MVP -2018 class.
