Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam PL-400 Topic 6 Question 109 Discussion

Actual exam question for Microsoft's PL-400 exam
Question #: 109
Topic #: 6
[All PL-400 Questions]

You need to add the script for the registration form event handling.

Which code segment should you use?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Desiree
14 days ago
If only the exam questions were as easy as filling out a registration form. That's like asking a developer to 'click here to fix the bug'.
upvoted 0 times
...
Ariel
16 days ago
Ah, the age-old question of how to handle form events. I guess you could say the answer is 'form-ula-ic'!
upvoted 0 times
...
Yvonne
22 days ago
D) addOnPreProcessStatusChange and E) formContext.data.isValid() don't seem relevant to the question. I think we're looking for something that specifically handles the save event.
upvoted 0 times
...
Beata
24 days ago
C) formContext.data.removeOnLoad(myFunction) is definitely not the right answer. Why would we want to remove the load event handler when we need to add the save event handler?
upvoted 0 times
...
Dawne
1 months ago
I'm not sure about the others, but B) formContext.data.addOnLoad(myFunction) seems like it would only add the function to the load event, which isn't what we want here.
upvoted 0 times
Kristin
3 days ago
E) formContext.data.isValid() is not related to adding event handling for the registration form.
upvoted 0 times
...
Ezekiel
20 days ago
C) formContext.data.removeOnLoad(myFunction) would not be the right choice for this scenario.
upvoted 0 times
...
Johnna
22 days ago
A) formContext.data.entity.addOnSave(myFunction) is the correct code segment to use for registration form event handling.
upvoted 0 times
...
...
Leila
2 months ago
A) formContext.data.entity.addOnSave(myFunction) looks like the correct answer here. We need to add the script for the registration form event handling, and this method allows us to attach a function to the save event of the form.
upvoted 0 times
Horace
9 days ago
B) I think you're right. This method allows us to handle the save event for the registration form.
upvoted 0 times
...
Tarra
10 days ago
A) formContext.data.entity.addOnSave(myFunction) looks like the correct answer here.
upvoted 0 times
...
...
Reuben
2 months ago
That makes sense, but I still think A is the best option for handling the registration form event.
upvoted 0 times
...
Elfriede
2 months ago
I disagree, I believe the answer is B) formContext.data.addOnLoad(myFunction) because it handles the event when the form is loaded.
upvoted 0 times
...
Reuben
2 months ago
I think the correct code segment is A) formContext.data.entity.addOnSave(myFunction)
upvoted 0 times
...

Save Cancel