sharepointsharepoint-2013

How can I add a button to approve tasks to a sharepoint list?


I want to make the approval process easier. For this I have thought of adding a button to a column of a sharepoint list.

The user would see the list of tasks pending approval and clicking on the task button would automatically be approved.

How can i do this (workflow,javascript...)? Is that possible?

Thanks for your answers.


Solution

  • Using the sharepoint workflow system, the user can approve from the task detail form already.

    If you want to make it more user friendly as you suggested, you may program an extra field, using JSLink technology to customize the task list rendering or to add this approval button from an other list (I assume you are using sharepoint 2013 on premise) from which you call javascript API to trigger the approval.

    Read more :

    JSOM Api to approve a task

    JSLINK