8 Replies Latest reply: Jan 23, 2013 7:17 AM by 974898 RSS

    conditional confirm dialog with button

    974898
      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...';
      doSubmit('SUBMIT');

      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?

      Regards,
      Anees