on change client script using a synch call
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2024 06:22 AM
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if(isLoading||newValue==''){
return;
}
var ci=g_form.getReference('u_configuration_item',getCIdetails);
function getCIdetails(ci) // ci is object
{
g_form.getValue('u_asset_tag',ci.Asset_Tag);
g_form.getValue('u_serial_number',ci.Serial_Number);
}
}
the script is not working on changing ci value
no auto populate value of asset tag and serial number
pls check and tell me where I am wrong
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 11:28 AM
Hi @Anjali yadav1 ,
Use setValue instead of getValue to set the values on the fields.
setValue - sets the value on the field.
getValue - retrieves the data from the fields.
Mark the response correct and helpful if the answer assisted your question.