Question

Change Confirmation Dialog

Hello Community!

Is posible change the caption of buttons YES and NO of Confirmation Dialog?

Sample:

this.showConfirmationDialog("My custom Test",function(result) {
								if (result === Terrasoft.MessageBoxButtons.YES.returnCode) {
 
								} else {
 
 
								}
							}, ["CustomText1", "CustomText2"]);

 

Like

1 comments

Solved!

	var ButtonYES = Terrasoft.MessageBoxButtons.YES;
						var ButtonNO = Terrasoft.MessageBoxButtons.NO;
						ButtonYES.caption = "CustomText1";
						ButtonNO.caption = "CustomText2";
 
 
						debugger;
						if(mensaje !== "") {
	                     	this.showConfirmationDialog("Custom Menssage" ,function(result) {
								if (result === Terrasoft.MessageBoxButtons.YES.returnCode) {
 
								} else {
 
 
								}
							}, [ButtonYES.returnCode, ButtonNO.returnCode]);

 

Log in or register to comment