JS to Show/hide Fields on SP task list edit form based on user perms

I am working with SharePoint on prem 2019 and leveraging the ootb tasks list. On the edit form of the same list, I would like show/hide certain fields based on logged on user’s perms.

For example, if the logged on user has contribute access to the list through SP perm group then Task Name, ‘%Complete’, task Status, Description should be hidden on the edit form. Users with Edit and Full control should be able to view all fields on the edit form.

Is this possible to implement using JS, can someone please help me withe the code that I can put into a script editor web part on the edit form.

Thanks in advance.

Quantum Supremacy Task

I’m trying to understand the task performed by Google’s Sycamore that recently achieved alleged Quantum Supremacy. I’ve read the paper in Nature but the actual task that would have taken 10,000 years to compete is over my head. Is anyone able to explain it in simpler terms?

AutoNumber Column Task ID restart every year

I am trying to create a column with increment number when adding a new task, but restart every year, for instance in year of 2017, i would like to Task ID looks like this: 2017-001, 2017-002, 2017-003 and so on.

Also it will restart back to 001 when the date is 2018, for instance in year of 2018, Task ID will look like this: 2018-001, 2018-002, 2018-003

How would i do this? Please help!

Set Task to Approved or Rejected from workflow

I have a Task that was created by a 2013 workflow, through either the Assign a task command or Start a task process command. I have a second workflow that wants to use Update List Item to approve or reject that Task when a specific condition occurs.

First, how do I find the appropriate task? By selecting the Tasks list, the lookup allows me to find it by ID, but I don’t have the ID of the task.

Second, the field/value combination only allows me to set the Status to Completed. I don’t see anything that allows me to set it to Approved or Rejected. Is that possible?

SharePoint designer 2010 unable to update task list due date

enter image description hereI created a task approval Serial Workflow Designer 2010. Here every user should get two days time after one person approve his task. Inside the task workflow BEFORE A TASK IS ASSIGNED I’ve written below step

Add 2 days to Variable CreateDate (Output to Variable Date01)

Set Task Field Due Date to Variable Date01

Here the problem is for all approvals Due Date in Task list is setting same date and time. When I check in Log, I have noticed in Log Due Date is updating correctly but in Task its update the same due date for every user. Please advice

Add/Update Properties of a Task List with c#

I’m trying to create a timeline based on a task list from a provider-hosted add-in. I have found out how it works and I’m able to create the task list and add the timeline web part, but I can’t add or update the necessary properties on the task list to get the items to actually show on the timeline.

I’m currently getting the list by:

var list = clientContext.Web.Lists.GetByTitle("Tasks"); clientContext.Load(list, l => l.RootFolder.Properties); clientContext.ExecuteQuery(); 

This works fine i get to see all the properties and if I manually add the tasks to a timeline I can see how it changes. But when I try to change the properties or just add them it doesn’t work. I have tried to following to get it to stick:

list.RootFolder.Properties.FieldValues.Add("TimelineAllViews", "Timeline"); list.RootFolder.Properties.FieldValues.Add("TimelineDefaultView", "Timeline"); list.RootFolder.Properties.FieldValues.Add("Timeline_Timeline",WebPartXML.TimelineXML); list.RootFolder.Update(); clientContext.ExecuteQuery(); 

I have also tried to load the list and/or folder before updating and also using update on list and/or folder.

Thanks for any help.

simple task. How to recolor a list line?

I just started learning Sharepoint. I have a problem that I can’t solve. There is a list. it is necessary that for a certain value in a particular column the display of a particular row changes. – the background color changed.

How to hook a label to check a specific column and after it repaints the row ???

I found the code. I don’t understand how to adapt it to my needs:

<script type="text/javascript"  src="//mysite/SiteAssets/jquery-1.11.0.min.js"></script> <script type="text/javascript"> $  (document).ready(function () { $  Text = $  ("td.ms-cellstyle.ms-vb2:contains('Завершена')");  $  Text.parent().css("background-color", "#acf0bd"); $  Text = $  ("td.ms-cellstyle.ms-vb2:contains('В процессе выполнения')"); $  Text.parent().css("background-color", "#eac117"); $  Text = $  ("td.ms-cellstyle.ms-vb2:contains('Не начата')"); $  Text.parent().css("background-color", "#c7c5bc"); $  Text = $  ("td.ms-cellstyle.ms-vb2:contains('Просрочена')"); $  Text.parent().css("background-color", "#c1374f");     }); </script> 

I almost forgot. I use the utility to insert the code CISAR. Maybe I am not adding it there

How to set InfoPath form fields values in task list without using workflow?

I have 5x action items fields on the InfoPath form. This form have more than 500 fields so get touching the boundary limits in terms text box fields datatype. Is there any way that we can set the form’s fields values in task list on form submit without workflow? Can we do this using InfoPath rules?