prompting a user for input with a modal popup dialog

prompting a user for input with a modal popup dialog

In developing interactive applications it is useful to be able to display a modal dialog box that presents a message and a couple choices (buttons or links). Based on the user's selection, you branch and do something in the application.

I'd like to implement a generic function to handle this. I would pass it the message string to be displayed and the text for up to three option buttons; it would return a simple integer indicating which button was clicked. As a less attractive alternative I'd be okay with a modal popup with predefined choices like OK and Cancel.

I'd know exactly how to approach this programming for Windows, but not in Zoho. Can someone point me in the right direction? I don't mind coding it but I need some guidance on which Zoho artifacts to use and how to approach it. Of course, if someone has already written something like this, I would also gladly accept that!

TIA, Edward