8 Replies Latest reply on Jan 23, 2013 1:17 PM by 974898

    conditional confirm dialog with button

      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?