Home » Developer & Programmer » Forms » Alert message box
Alert message box [message #300869] Mon, 18 February 2008 07:01 Go to next message
Messages: 354
Registered: August 2006
Senior Member

I have an alert type 'CAUTION'.
I am showing to the user "Do you want to save the changes" with YES/NO button.
But it is allowing the users to click on close of the message window.Close mark "X" at the alert window.
How can i handle so that users should press YES/NO button but not close button of the alert window.

Re: Alert message box [message #300960 is a reply to message #300869] Mon, 18 February 2008 18:18 Go to previous messageGo to next message
Messages: 10180
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Test the return value and if it is not what you want then ask them again.

Alternatively, trap the value returned when 'x' is pressed and assume that this means 'no'.

Re: Alert message box [message #300987 is a reply to message #300869] Mon, 18 February 2008 22:40 Go to previous message
Messages: 551
Registered: August 2005
Senior Member
Dear Friend,

You can do this by checking the alert button value which in your case should be "ALERT_BUTTON1" OR "ALERT_BUTTON2". If none of the value is return then the user must have pressed the Closed button.

Azam Khan
Previous Topic: Call Stored Procedure in forms
Next Topic: can not print on clients default printer-webutil tool
Goto Forum:

Current Time: Sun Aug 20 14:10:55 CDT 2017

Total time taken to generate the page: 0.01322 seconds