Kashif Nizam Qureshi


Leave a comment

Redirecting User to Approval Edit Form Automatically

Add following html in a content editor of workflow task display form. This will redirect user to editable approval form.

 

<script src="/PWA/SiteAssets/RedirectToEditForm.js"></script>

the javascript file RedirectToEditForm.js should have the following code:

    var origUrl = window.location.toString();
    var editUrl = origUrl.replace("DispForm","EditForm");
    window.location = editUrl;

Note: Do not add Script tags in the file, just add code in file.