Getting Undifened in a field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 11:32 PM
Hello community i have written a client script to set value of field from a reference field but i am getting undefined in that field . Here is the script
ar getOEM = g_form.getReference('vendor', setTeamandCategory);
function setTeamandCategory(getOEM) {
if (getOEM)
g_form.setValue('u_team_category', getOEM.u_team_category);
g_form.setValue('contract_administrator', getOEM.contact);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 12:47 AM
If i select OEM field it is working fine but if i remove value from the OEM field it is showing undefine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 12:55 AM - edited 12-28-2023 12:59 AM
Hi @hema sundar , If your onChnage client script runs on the OEM field, can you try the below script?