Related Items - On Change / Event Handler
Posted: 17 May 2017
Hello there,
Hopefully this hasn't been asked before, but apologies if so and feel free to direct me to the forum or blog post.
I think what I am trying to do is fairly simple, which is update a field on a form based on the sum of a column of a related items list. I am editing the related items list via quick edit as it is faster this way, however is it possible when an item is added for an event handle or onchange function to be called to update a field value?
I was thinking something like: However, perhaps unsurprisingly that doesn't work.
Any suggestions of advice would be appreciated.
Thank you,
Joss.
Hopefully this hasn't been asked before, but apologies if so and feel free to direct me to the forum or blog post.
I think what I am trying to do is fairly simple, which is update a field on a form based on the sum of a column of a related items list. I am editing the related items list via quick edit as it is faster this way, however is it possible when an item is added for an event handle or onchange function to be called to update a field value?
I was thinking something like:
Code: Select all
fd.relatedItems(0).data('ctx').onchange()
Any suggestions of advice would be appreciated.
Thank you,
Joss.