Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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.