Here's a problem I have been puzzling over for a while... let's see what the greatest minds think about it:
A web page has a text field and a button. The text field is populated with today's date when the web page loads. When the user clicks the button here's what needs to happen:
- If the text field's value is a date before today, an ARE YOU SURE? confirmation needs to appear. If the user answers YES, then a report is generated using the text field's value as an input parameter. If the user answers no, then the same page
is redisplayed and no report is generated.
- If the text field's value is today or in the future, then a report is generated using the text field's value as an input parameter.
It's the same report, the question is how to display a confirm prompt if the date is in the past.
Javascript can be used to always display an ARE YOU SURE? confirmation on a DELETE button, but this confirmation only should appear occasionally based upon the text field's value.