This discussion is archived
8 Replies Latest reply: Jan 23, 2013 5:17 AM by 974898 RSS

conditional confirm dialog with button

974898 Newbie
Currently Being Moderated
Hi all,

I want to create a confirm dialog with submit button that can fire only if one item is not submitted in that page.

i have one check box item in my page called P2_LWF

i created confirm dialog with button using the below code

javascript:if (confirm('Are you sure you want to proceed?')) {
this.disabled=true; this.value='Submitted...';

The moment i click submit button i want to fire that confirm dialog only if P2_LWF is unchecked.

How can i do that in my application?



  • Correct Answers - 10 points
  • Helpful Answers - 5 points