- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 03:04 AM
Hi Community,
Can anyone please say how to update a read only field as 'empty'.
Thanks,
Spandana.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 03:30 AM
what's your business requirement here?
if field is readonly then you cannot edit it
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 03:24 AM
you can install the SN Utils Browser extension. Then double-click on the label "Substate" and remove the value. Last step is updating the form.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 03:30 AM
what's your business requirement here?
if field is readonly then you cannot edit it
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 03:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 03:36 AM
As it's read only , I s there any way to make it as empty. I am using this script but it's not working:
var tr = new GlideRecord('ast_contract');
tr.addEncodedQuery('numberSTARTSWITHCNTR0011651');
tr.query();
while(tr.next()){
tr.substate=''; // making values empty
tr.setWorkflow(false);
tr.update();
}