Hmm, option D `addOnPreProcessStatusChange` sounds like it might be useful, but I'm not sure if it's the right solution for this specific problem. Let me double-check the question.
Haha, option B `formContext.data.removeOnLoad(myFunction)` is definitely not the way to go. I don't think we want to remove the event data, we want to add it!
Option A looks interesting, but I'm not sure if `formContext.data.addOnLoad(myFunction)` is the right way to go about it. Shouldn't we be using the `entity` property instead of `data`?
I think option C is the correct answer. We need to add the script to populate event data on the form, and `formContext.data.entity.addOnSave(myFunction)` seems like the right way to do it.
That's a good point, Nada. It does make more sense to populate event data when the form is loaded. I think I changed my mind, A) is the correct answer.
I disagree, I believe the correct answer is A) formContext.data.addOnLoad(myFunction). We need to populate event data when the form is loaded, not saved.
Mike
1 months agoMalcolm
6 days agoAmos
14 days agoVicki
16 days agoKyoko
1 months agoCarma
2 months agoCarmen
5 days agoKiera
11 days agoLindsay
1 months agoCaren
2 months agoHelga
20 days agoParis
26 days agoAlyssa
1 months agoMila
2 months agoJosefa
2 months agoNada
2 months agoJosefa
2 months ago