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
2 months agoMalcolm
1 months agoAmos
1 months agoVicki
2 months agoKyoko
2 months agoCarma
3 months agoCarmen
1 months agoKiera
1 months agoLindsay
2 months agoCaren
3 months agoHelga
2 months agoParis
2 months agoAlyssa
2 months agoMila
3 months agoJosefa
3 months agoNada
3 months agoJosefa
3 months ago