Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer I Topic 8 Question 74 Discussion

Actual exam question for Salesforce's Platform Developer I exam
Question #: 74
Topic #: 8
[All Platform Developer I Questions]

A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violations to the user.

How can the developer make sure that validation rule violations are displayed?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Franklyn
1 months ago
I don't know, guys. What if the validation rules are just too darn complicated? Maybe we need to call in the Validation Rule Whisperer.
upvoted 0 times
Reita
3 days ago
C) Include on the Visualforce page.
upvoted 0 times
...
Roselle
9 days ago
C) Include on the Visualforce page.
upvoted 0 times
...
Delbert
14 days ago
B) Use a try/catch with a custom exception class.
upvoted 0 times
...
Stephaine
15 days ago
A) Add custom controller attributes to display the message.
upvoted 0 times
...
Ceola
20 days ago
B) Use a try/catch with a custom exception class.
upvoted 0 times
...
Fernanda
23 days ago
A) Add custom controller attributes to display the message.
upvoted 0 times
...
...
Valentin
2 months ago
Option C is the clear winner here. It's like the validation rule version of 'plug and play'!
upvoted 0 times
Leota
19 days ago
C) Yes, is the way to go for displaying validation rule violations.
upvoted 0 times
...
Skye
29 days ago
A) Add custom controller attributes to display the message.
upvoted 0 times
...
Leonor
1 months ago
C) Include on the Visualforce page.
upvoted 0 times
...
...
Yoko
2 months ago
A? What kind of custom controller attributes are we talking about here? Sounds like a lot of unnecessary work.
upvoted 0 times
...
Kimbery
2 months ago
D? Really? Why would you use database.unsert() for this? That's just asking for trouble.
upvoted 0 times
Vashti
15 days ago
B) Use a try/catch with a custom exception class.
upvoted 0 times
...
Markus
22 days ago
C) Include on the Visualforce page.
upvoted 0 times
...
Whitney
1 months ago
A) Add custom controller attributes to display the message.
upvoted 0 times
...
...
Jeanice
2 months ago
B looks good too, but it's a bit more complex than C. I'd prefer to keep things simple if possible.
upvoted 0 times
Goldie
1 months ago
C) Include on the Visualforce page.
upvoted 0 times
...
Jolanda
2 months ago
A) Add custom controller attributes to display the message.
upvoted 0 times
...
...
Gregoria
3 months ago
I think option C is the way to go. The component is designed to display validation rule violations, so it's the most straightforward solution.
upvoted 0 times
Brent
21 days ago
Yes, it provides clear feedback to the user on any validation rule violations.
upvoted 0 times
...
Bette
1 months ago
I think it's important for the user to easily see what went wrong with their input.
upvoted 0 times
...
Valentin
1 months ago
It's definitely the most user-friendly option for displaying errors.
upvoted 0 times
...
Jacquelyne
2 months ago
I agree, using is the best way to display validation rule violations.
upvoted 0 times
...
...
Sina
3 months ago
I'm not sure, but maybe adding custom controller attributes could also work to display the message.
upvoted 0 times
...
Kristeen
3 months ago
I agree with Dorcas, using would be the best way to display validation rule violations.
upvoted 0 times
...
Dorcas
3 months ago
I think the developer should include on the Visualforce page.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77