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.

Confirm box in Catalog client script

Kri
Kilo Sage

I want to show a Confirm box in the Onsubmit Catalog client script with option ok and cancel, currently I'm having alert message which has only one option ok

1 REPLY 1

Weird
Mega Sage

You can try adding a confirm box like so:

function onSubmit() {
	var response = confirm("Are you sure you want to submit?");
	return response;

}

Response will be false if user presses cancel and true if they press OK.