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
20 days agoKyoko
26 days agoCarma
29 days agoLindsay
21 days agoCaren
1 months agoHelga
3 days agoParis
9 days agoAlyssa
19 days agoMila
1 months agoJosefa
2 months agoNada
2 months agoJosefa
2 months ago