How to set value to a field after a record has been opened using the g_aw.openRecord function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-11-2022 01:02 AM
After a record has been opened by using the g_aw.openRecord() function how can we set values to specific fields?
Any help would be appreciated.
Thanks and Regards,
Vasu
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-11-2022 01:20 AM
Hi @Vasu
Check this thread once
https://community.servicenow.com/community?id=community_question&sys_id=fba18f50db716810f21f5583ca961969
Thank you
Prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-11-2022 02:18 AM
Hi Prasad,
Thank you so much for the response.The record i am looking to fetch is already saved and i want to reopen it and update a field value.Can you help out?
Thanks and Regards,
Vasu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-11-2022 02:20 AM
Can you show me your current code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-11-2022 02:23 AM
function saveForm(result) {
result = JSON.parse(result);
if (!result.error) {
g_aw.closeRecord();
g_aw.openRecord(result.table, result.id);
}
}
here after the record has been opened i need to update it with the value