need to make a check box true for a particular view

jobin1
Tera Expert

Hi All,
I need to make a check box "u_html" to true on "u_email_client" table always for a particular view "BPO_HRqueryHTML" How this can be achieved?



jobin1_0-1702541319913.png

 

1 ACCEPTED SOLUTION

Hi @jobin1 

 

No need to write script.

 

Use UI policy. For example i did this for Incident table and MIM view

 

LearnNGrowAtul_0-1702549362116.png

 

*************************************************************************************************************
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]

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

View solution in original post

5 REPLIES 5

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
You can use as per below sample onLoad client script-


var objView = getView();  
	  
	if (objView == 'ess')  //I am setting it for ess vie
	{  
		g_form.setReadOnly('my_check_box','true');
		g_form.setValue('my_check_box','true');
	}

Thanks and Regards,

Saurabh Gupta

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @jobin1 

 

Greetings!!

 

You can achieve this via UI policy and without script.

 

LearnNGrowAtul_0-1702545058663.png

 

Select the View as per table and your work done.

 

*************************************************************************************************************
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]

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

here where i can make u_html to true?
is it in run script?
g_form.setValue('u_html', true);

Hi @jobin1 

 

No need to write script.

 

Use UI policy. For example i did this for Incident table and MIM view

 

LearnNGrowAtul_0-1702549362116.png

 

*************************************************************************************************************
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]

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