View Full Version : dialogue box
rookie
12-14-2004, 01:57 PM
Can you have a dialogue box ask a question and based on the users response jump to a specific page?
Example:
The user click on the Forms button, a dialogue box appears and asked the question.
Are you a Graduate or Undergraduate?
The user can click the appropriate button or icon.
Thanks! Rookie…
:wow
Josué Alba
12-14-2004, 02:14 PM
Can you have a dialogue box ask a question and based on the users response jump to a specific page?
Example:
The user click on the Forms button, a dialogue box appears and asked the question.
Are you a Graduate or Undergraduate?
The user can click the appropriate button or icon.
Thanks! Rookie…
:wow
Just add this code to the selected Button
answer = Dialog.Message("Title of the Dialog", "The question you want", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1);
if answer ~= "CANCEL" then
Page.Jump("Page2") --this are the graduated
else
Page.Jump("Page3") --this are the ungraduated
end
rookie
12-14-2004, 02:19 PM
Awesome…thanks!! :yes
Rookie
Stefan_M
12-14-2004, 02:21 PM
You can use Action "Dialog.Message"
Text="Are you a Graduate"
Type=MB_YESNO
ResultVariable=result
Button : 'On Click'
result=Dialog.Message("Question #023", "Are you a Graduate?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1);
if result==IDYES then
Page.jump("Page1")
else
Page.jump("Page2")
end
Stefan_M
rookie
12-14-2004, 02:55 PM
Thanks...rookie
:yes
rookie
12-14-2004, 05:20 PM
This works great…how do I get the buttons to display something different than yes or no?
answer = Dialog.Message("Title of the Dialog", "The question you want", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1);
if answer ~= "CANCEL" then
Page.Jump("Page2") --this are the graduated
else
Page.Jump("Page3") --this are the ungraduated
end
Rookie... :rolleyes
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.