g_form.SetValue() not set the value on record. After record submit value is EMPTY -- Kingstone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2018 06:32 AM
I have Category, Type and Item based on these values i am getting approving manager. for getting approving manager i had custom table with same field names. Approving Manager(Ex:Alex,Pradeep,Sharma).
by Glide Record on Custom table in onChange() client script i am getting Manager.
Here issue is after submit the record Approving Manager filed is EMPTY. this issue is after Kingstone Upgrade. below is the sample code.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue == '') {
return;
}
if(cat == 'Application1' && type == 'Application2'){
var appm = new GlideRecord('u_approvers');
appm.addQuery('u_category' , cat);
appm.addQuery('u_type' , type);
appm.addQuery('u_item' , item);
appm.query();
while (appm.next()){
g_form.setValue('u_approving_manager', appm.u_manager);
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 04:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 04:35 AM
Hello Ifti
I read the post it seems that the issue is there for service portal I am facing the issus in custom application.
Also I using Ajax not glide record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2018 12:42 AM
Hi,
This issue is because of making list collector readonly by using UIPolice and onLoad Client Script.
After making changes it is working fine. But the issue here is it shows Add me and Unlock<<Field name>>. by using onLoad client script disabled Add me. But unable to disable Unlock<<Field name>> without changing properties.
Hide Add me in List:
document.getElementById("add_me.incident.watch_list").style.display='none';
document.getElementById("add_me_locked.incident.watch_list").style.display='none';
Need help to Hide Unlock<<Field name>> in List: