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.

Can Event Handlers be Created in the UI Builder?

Y_Aoi
Tera Contributor

I am considering creating an event handler in the UI Builder that will allow for navigation within the same tab upon clicking. Is it possible to manually create such an event handler?

1 ACCEPTED SOLUTION

Nootan Bhat
Kilo Sage

Hi @Y_Aoi,

You can use the link to destination event on the button use the Script mode.

use the code as below:

	return {
		external: {
			url: "https://developer.servicenow.com/dev.do#!/home",
			target: "_self"
		},
	};

Please accept the solution if it was helpful.

 

Thanks

 

View solution in original post

1 REPLY 1

Nootan Bhat
Kilo Sage

Hi @Y_Aoi,

You can use the link to destination event on the button use the Script mode.

use the code as below:

	return {
		external: {
			url: "https://developer.servicenow.com/dev.do#!/home",
			target: "_self"
		},
	};

Please accept the solution if it was helpful.

 

Thanks