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
3 months 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
3 months 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
Melvin
26 days ago
Option B seems like a good choice for adding script for event handling in the registration form.
upvoted 0 times
...
Kattie
27 days ago
B) formContext.data.addOnLoad(myFunction)
upvoted 0 times
...
Leonor
29 days ago
No, I believe option E is for checking form validity, not for event handling.
upvoted 0 times
...
Garry
1 months ago
E) formContext.data.isValid()
upvoted 0 times
...
Graciela
2 months ago
I think option A is the right one for handling the registration form event.
upvoted 0 times
...
Kattie
2 months ago
A) formContext.data.entity.addOnSave(myFunction)
upvoted 0 times
...
...
Yvonne
3 months 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
3 months 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
Hollis
1 months ago
I think A) formContext.data.entity.addOnSave(myFunction) is the correct code segment to use for the registration form event handling.
upvoted 0 times
...
Twana
2 months ago
C) formContext.data.removeOnLoad(myFunction)
upvoted 0 times
...
Elmer
2 months ago
B) formContext.data.addOnLoad(myFunction)
upvoted 0 times
...
Shayne
2 months ago
A) formContext.data.entity.addOnSave(myFunction)
upvoted 0 times
...
...
Dawne
3 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
2 months ago
E) formContext.data.isValid() is not related to adding event handling for the registration form.
upvoted 0 times
...
Ezekiel
3 months ago
C) formContext.data.removeOnLoad(myFunction) would not be the right choice for this scenario.
upvoted 0 times
...
Johnna
3 months ago
A) formContext.data.entity.addOnSave(myFunction) is the correct code segment to use for registration form event handling.
upvoted 0 times
...
...
Leila
4 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
2 months ago
B) I think you're right. This method allows us to handle the save event for the registration form.
upvoted 0 times
...
Tarra
2 months ago
A) formContext.data.entity.addOnSave(myFunction) looks like the correct answer here.
upvoted 0 times
...
...
Reuben
4 months ago
That makes sense, but I still think A is the best option for handling the registration form event.
upvoted 0 times
...
Elfriede
4 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
4 months ago
I think the correct code segment is A) formContext.data.entity.addOnSave(myFunction)
upvoted 0 times
...

Save Cancel