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.
- 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?
- Can I do the update operation asynchronously in the new item form after the item is saved?
Thanks