Make date picker read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2016 07:51 AM
Hi
I used this Readonly Variables on a Standard Form - ServiceNow Guru to make variables on Task read-only. But still I am able to change the date using the date picker icon. Please help me.
Thanks,
Sai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2016 08:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2017 04:11 AM
Hi,
Create a Catalog UI Policy:
Onload: true
Run script: true
Run scripts in UI type: All
Execute if true:
function onCondition() {
var $ = this.jQuery;
$('input[id*="field_sys_id"]').attr('readonly', true);
}
Regards,
Anup Raheja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2017 05:12 AM
A quick search shows someone asking something similar here: https://community.servicenow.com/thread/290847 - does that help?