This topic is locked

Warn user before cancelling input

11/12/2007 5:25:18 AM
ASPRunnerPro General questions
H
harringtonb author

Hello
I am using ASPRunner 4.0 (Build 97) and have a quick question.

If a user is adding a new record and then decides to click on the 'Back to List' link, by default the user is not warned that all changes made will be lost. What code can I put in to inform the user that changes will be lost if they proceed. The code should also allow the user to cancel the request i.e
'All Changes will be lost if you Proceed. Click OK to Proceed to Cancel to abort the request.'
Thanks.
Regards,

Brian

Sergey Kornilov admin 11/14/2007

You can use the approach similar to "Delete selected" warning on the list page:

<input disptype="control1" class=button type=button value="Delete selected" onClick="if (confirm('Do you really want to delete these records?')) frmAdmin.submit(); return false;">