Either I'm doing something wrongg or I've come across a bug when using Alerts; I have created an Alert component called "Confirm" with two buttons, button 1 is "Yes" and button 2 is "No". I seem to be getting an inconsistent response back from the alert at runtime.

Start application and invoke alert
If I press No first, I get a NULL response
If I press No again I get 1 as the response
If I now press Yes I get 1 as the response
If I press Yes again I get 0 as the response

Test 2

Start application and invoke alert
If I press Yes first, I get a NULL response
If I press Yes again I get 0 as the response
If I now press No I get 0 as the response
If I press No again I get 1 as the response

However, the Formspider alert is different from the Forms alert. In Formspider, when an alert is showed, the framework does not wait for the alert response(does not freeze the codeflow). In Formspider, you should get the alert response at the "On Close" event of the alert. You can set an "On Close" event for an alert through its edit dialog.