You are viewing limited content. For full access, please sign in.

Question

Question

Laserfiche Forms Process Revival

asked on January 11, 2021

Hi team,

 

Enquiring whether a process can be called back to continue after it has ended. A customer mistakenly clicked on the "Reject" button and therefore the process has completed. Can this process be revived to continue from where it ended? 

Also, is there a button verification prompt that will ask if you're sure of the action you just clicked? That would really help.

 

Thanks,

0 0

Replies

replied on January 11, 2021

I've run into this question a few times before (with varying degrees of urgency) and the answer is no, you can't revive a process that's been terminated or completed. The best solution we've been able to come up with is to manually re-enter all the information and make sure that the approvers know it's a re-submission so they can prioritize it.

0 0
replied on January 11, 2021

Here's a simple process to prompt the user to confirm their action before proceeding.

  1. Add a single line text field to your form.  Make it required.  Give it CSS Class: submit_confirmation
  2. Add this CSS to your form:
    .submit_confirmation {display: none!important;}
  3. Add this Javascript to your form:

    $(document).ready(function () {
             
      $('.action-btn.Reject').on('click', function() {    
        var userResponse = confirm('Please confirm you want to: ' + $('.Reject').val());
        if(userResponse)
        {
          $('.submit_confirmation input').val('CONFIRMED');
        }
        else
        {
          $('.submit_confirmation input').val('');
        }
      }); 
        
      $('.action-btn.Submit').on('click', function() {
        var userResponse = confirm('Please confirm you want to: ' + $('.Submit').val());
        if(userResponse)
        {
          $('.submit_confirmation input').val('CONFIRMED');
        }
        else
        {
          $('.submit_confirmation input').val('');
        }
      }); 
      
      $('.action-btn.Approve').on('click', function() {
        var userResponse = confirm('Please confirm you want to: ' + $('.Approve').val());
        if(userResponse)
        {
          $('.submit_confirmation input').val('CONFIRMED');
        }
        else
        {
          $('.submit_confirmation input').val('');
        }
      }); 
     
    }); 
    

The CSS hides the field you added to your form from view.  It's important to hide it via CSS instead of via Field Rules, because you want the required status of the field to be honored, which Field Rules will cause to be ignored.

The user will be prompted if they want to Reject/Submit/Approve the form (it'll specifically prompt whatever you have set for the labels on the Reject/Submit/Approve buttons), and the submission will only be allowed to proceed if they accept the prompt.

Alternately, here's a simplier version of the Javascript, that does the same message for all three buttons, instead of prompting the specific button label:

$(document).ready(function () {
         
  $('.action-btn').on('click', function() {    
    var userResponse = confirm('Please confirm you want to process this form.');
    if(userResponse)
    {
      $('.submit_confirmation input').val('CONFIRMED');
    }
    else
    {
      $('.submit_confirmation input').val('');
    }
  }); 
 
}); 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.