How to set value to a field after a record has been opened using the g_aw.openRecord function

Vasu20
Tera Contributor

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

6 REPLIES 6

Prasad Pagar
Mega Sage

Hi @Vasu

Check this thread once

https://community.servicenow.com/community?id=community_question&sys_id=fba18f50db716810f21f5583ca961969

Thank you
Prasad

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

 

Can you show me your current code?

 

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