Has anyone some sample javascript code to recalculate a calculated column in SharePoint 2013 tasks? This should work on new and edit form and also with the AllItems view.

Many thanks.

1 Answer 1


I didn't understood your question fully, but check out this article as this has one option to update a calculated column automatically.


You may need to modify this as per your requirement.

Also, can you put some notes on the scenario that you are trying out?

  • Thanks Rajesh! I'd like to create an individual ID out of the column ID and the subject of the task. The problem is that the field ID is empty until the task will be created and the ID will be dropped out of the calculated column when you change something in the task (I saw several posts on this issue here). So i thought that it might be a solution to run a javascript which recalculates the column again if the edit form or the "AllItems" view will be opened. Or is there a better solution? (I cannot use SPD or do not have a workflow system right now). Thanks Apr 16, 2014 at 13:18

Your Answer

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

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