AnsweredAssumed Answered

Popup Confirmation Dialgue in Alfresco Activiti

Question asked by jeenut on Mar 15, 2017
Latest reply on Mar 16, 2017 by jeenut

I am using a Activiti Enterprise edition and I want a popup feature to appear on submission of the start form. For attaining this I added the following Javascript to Javascript tab in the form to the form control 

if (execution.getVariable("adhocflag")== true){
   var wrongdateflag;
   var txt;
   var r = confirm("A review for this Review Period date already exists. Do you wish to continue?");
   if (r == true) {
      console.log("You pressed OK!")
   } else {
      console.log("You pressed Cancel!")
      return false;
   }
}

 

 

Basically, I want to access an existing execution variable in the function. But I am not able to achieve this. Also I want to get access to a variable declared in the same form. Can someone explain how this can be achieved?

 

Am I missing something here??

 

Regards,

Jeenu

Outcomes