This is my Task list, how to redirect to any Site page on the click of the Task Name field?

enter image description here

When we are clicking on any Task Name field's value, the default form is opening as shown below:

enter image description here

Instead of opening the default form, we want to redirect to any Site page form, as shown below:

enter image description here

Is there any way, to give the URL to redirect to the Site page form instead of default form opening in the Task list in SharePoint?

1 Answer 1


You could use CSR to re-render the list view.

    // Create object that have the context information about the field that we want     to change it's output render
    var statusFiledContext= {};
    statusFiledContext.Templates = {};
    statusFiledContext.Templates.Fields = {
      //Apply the new redenring for nom du projet field on the list view
      "Title" : {"View" : statusFiledTemplate}
  //this function provides our purpose
  function statusFiledTemplate(ctx){
    var task= ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    return "<a href='https://contoso.sharepoint.com/sites/dev/SitePages/page.aspx'>" + task + "</a>"; 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.