This topic is locked

After Add Message Box, Not 'OK or Cancel' message choice it

4/22/2008 12:47:18 PM
ASPRunnerPro General questions
A
agmoraojr author

hi I just added Sub AfterAdd() events, after the user save's and add the ITEM.
Here is the CODE:
Sub AfterAdd()

'** Custom code ****

Response.Write "<script>if (confirm('Add Another ITEM?')) window.location = 'ITEM_LIST_add.asp'; else window.location = 'ITEM_LIST_list.asp';</script>"
End Sub
What I want to the script is that it displays "YES or NO" choices, not "OK or CANCEL"
Thank you,

J
Jane 4/23/2008

Hi,
unfortunately there is no easy way to change confirm box.

As workaround you can add your own custom code and create another window with two buttons. However we don't have a ready to go solution for this.