AnsweredAssumed Answered

How to add a confirmation dialog before approving a review step of a workflow in alfresco share

Question asked by someone1050 on Apr 3, 2015
Latest reply on Apr 7, 2015 by someone1050
I want to add a confirmation dialog before an approving review step in Alfresco's workflow, as shown in the picture for more precision

I've try to do it in a custom activiti-transitions.ftl,


but it doesn't work correctly. I tried to do that with 2 javascript alert like here :

    <#if form.mode == "edit"
    && ((['prop_bpm_status']??
    &&['prop_bpm_status'] != 'Completed')
    ||['prop_bpm_status']?? == false)>

    <script type="text/javascript">//<![CDATA[
       new Alfresco.ActivitiTransitions("${fieldHtmlId}").setOptions(
          currentValue: "${field.control.params.options?js_string}",
          hiddenFieldName: "${}"
    alert("test !!!!!");

    <div class="form-field suggested-actions" id="${fieldHtmlId}">
       <div id="${fieldHtmlId}-buttons">
    <script type="text/javascript">//<![CDATA[
    alert("div button ?  !!!!!");

these 2 alerts appear before the buttons(look at the picture) "Approuver" and "Rejeter" are generated in the page .

You have the images of these two alerts in this link :,kf4Hud6#0