SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a requirement of doing some complex calculations based on the multi lookup values selected in the form while creating an item. I can't use a calculated column nor SharePoint designer as they don't support calculations based on lookup values. I'm looking at no code option and hence no event handlers. I'm planning to use ECMA script to do the same when the item is saved. One approach might be to add a content editor to the new/edit form pages, but I'm looking at some better ways of doing.

  1. Is there a way to hookup ECMA script to the save button and call the javascript function to update a field with the calculated value?
  2. Can I do the update operation asynchronously in the new item form after the item is saved?


share|improve this question

PreSaveAction, will let you do processing on item click with your own custom logic.

It executes your code and returns true and saves or returns false and prevents the item from being saved until the data is corrected.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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