I know I could handle within the program but in this case I need a solution without having to return to the program.
I found there is a javascript function that I see can be used like:
Code: Select all
onclick="return confirm('Click OK to Close the Page, Click Cancel to Return to the Page');"
Code: Select all
return confirm('Click OK to Close the Page, Click Cancel to Return to the Page')
If I take out the "return" then I get the alert window but clicking OK or Cancel has no impact, nothing happens when the alert window closes.'return' statement outside of function
When I try to set the button's onclick property as below nothing happens when I click the button, no alert window, the button's action doesn't occur.
Code: Select all
js: function confirmClose() {
return confirm('Click OK to Close the Page, Click Cancel to Return to the Page');
}
Is there a PUI way of requiring a confirmation for an onclick event that would do what I need?