A custom picklist field, Food_Preference_c, exists on a custom object. The picklist contains the following options: “Vegan”, “Kosher”, “No Preference”. The developer must ensure a value is populated every time a record is created or updated. What is the optimal way to ensure a value is selected every time a record is saved?

QuestionsCategory: CRT-450A custom picklist field, Food_Preference_c, exists on a custom object. The picklist contains the following options: “Vegan”, “Kosher”, “No Preference”. The developer must ensure a value is populated every time a record is created or updated. What is the optimal way to ensure a value is selected every time a record is saved?
Admin Staff asked 4 months ago
A custom picklist field, Food_Preference_c, exists on a custom object. The picklist contains the following options: “Vegan”, “Kosher”, “No Preference”. The developer must ensure a value is populated every time a record is created or updated.
What is the optimal way to ensure a value is selected every time a record is saved?

A. Write an Apex trigger to ensure a value is selected.

B. Set “Use the first value in the list as the default value” to True.

C. Mark the field as Required on the object’s page layout.

D. Mark the field as Required on the field definition.








 

Suggested Answer: D

Community Answer: D



This question is in CRT-450 Salesforce Certified Platform Developer I Exam
For getting Salesforce Certified Platform Developer I











Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Salesforce. 
Trademarks, certification & product names are used for reference only and belong to Salesforce.
The website does not contain actual questions and answers from Salesforce's Certification Exams.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.