Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

change management:

BhujangiG
Tera Contributor

If the change type is “Minor”, the impact should be “Low” by default and - If the change type is “Major”, the impact should be “High” by default.. - Business rule/Client Script

 

CTASK “Technical Review/Assessment” cannot be closed without providing the MOP in attached file filling all the fields under planning tab. - 

BhujangiG_0-1764244311129.png

create flow designer for this 

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @BhujangiG 

 

You can use the client script something like this

 

https://www.servicenow.com/community/itom-forum/set-value-in-a-catalog-ui-policy/td-p/3051319

 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }

    //Type appropriate comment here, and begin script below
	alert("Outside");
    if (newValue == 'No') {
		alert("inside if");
        g_form.setValue('user_name_2', ""); // Not Same
    } else{
		alert("inside else");
		g_form.setValue('user_name_2', g_form.getValue("user_name_1")); // Same
	}
}

 

or in UI policy under conditions:

 

function onCondition() {

	g_form.setValue('Impact', '3');
	
}
*************************************************************************************************************
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]

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