We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Some variables are empty on RITM form even after filling them on Portal.

sowmya28
Tera Contributor

I have created variables of type select box.

I am able to fill these variables on portal but when I open RITM form, I see these values as empty.

Can you please help me on this. Thanks in advance. Please help me as it is urgent.

6 REPLIES 6

Sunny Khandelwa
Kilo Guru

Hi,

 

Can you check if there is a UI policy written to this? 

If yes, in UI Policy we have a check box "Clear Value" mark it as false if true. 

You can also check if client scripts in written to make them empty.

 

Regards,

Sunny Khandelwal

No, I didn't mark the check box Clear value.

but I have written client script for clearing the value.

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
g_form.clearOptions('specific_area');
return;
}
//Type appropriate comment here, and begin script below

g_form.clearOptions('specific_area');
g_form.addOption('specific_area', "", '--None--');

Just try to make it inactive & try if the issue still exists. If not then you need to modify the code