Catalog variable visible on Portal but not visible on submitting a RITM

mishravikas
Tera Contributor

Hi Everyone,

 

The Catalog Variable is visible on the Portal but when submitting a request the field is not visible on the RITM. How can I show the field on the portal and as well as on the RITM. It is happening with 1 variable only.

 

The variable's value is dependent on another variable

mishravikas_0-1720612900158.png

mishravikas_1-1720612939941.png

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

HI @mishravikas 

 

Check is any Catalog UI policy stopping this or client script?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

// client script for above issue//

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
	//g_form.getValue('type_of_email')='';
     g_form.clearValue('type_of_email');
	 // return;
   }

   //Type appropriate comment here, and begin script below
   if(newValue == 'NML – Non-Manager Level' || newValue == 'FML – First Manger Level'||newValue == 'MML – Middle Management Level') {
	
	g_form.setValue('type_of_email','O365 E1 license');
	g_form.setReadOnly('type_of_email',true);
   }
   else if(newValue == 'SML – Senior Management Level' || newValue == 'TML – Top Management Level'){
	g_form.setValue('type_of_email','O365 E3 license');
	g_form.setReadOnly('type_of_email',true);
   }
//    else{
// 	g_form.clearValue('type_of_email');
//    }
   
}
//isLoading ||

Mohan raj
Mega Sage

Hi @mishravikas,

 

Check the below Knowledge article which will help you to fix the issue 
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725077

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0719961

 

If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.