Salesforce Certified Platform App Builder free question 1 / 10 · Domain 1: Salesforce Fundamentals
The Credit Limit field is read-only for sales reps through field-level security. At the sales manager's request, the field was made required on the page layout used by the sales reps' opportunities. What happens to the field when a sales rep opens the edit page, according to Salesforce Help?
- It is marked required and the rep is asked to enter a value but cannot, so the rep cannot save the opportunity
- It becomes editable, because a field made required on the page layout takes precedence over field-level security
- The layout cannot be saved, because a field that is read-only in field-level security cannot be made required on a layout
- It stays read-only; of the layout's required setting and field-level security, the more restrictive one applies
Show the answer and explanation
Answer: D
Why this is correct
"Field Permissions" says the page layout and field-level security settings combine to determine which fields a user sees, and the more restrictive of the two always applies. Its example is a field that is required in the page layout but read-only in field-level security: field-level security overrides the page layout, and the field stays read-only.
Why the other options are wrong
"It becomes editable, because a field made required on the page layout takes precedence over field-level security" … Help gives exactly this case as its example: when a field is required in the page layout but read-only in field-level security, field-level security overrides the page layout and the field stays read-only.
"The layout cannot be saved, because a field that is read-only in field-level security cannot be made required on a layout" … Help treats this combination as something that can occur, with the field required in the page layout and read-only in field-level security. Making the field required on the layout is not blocked.
"It is marked required and the rep is asked to enter a value but cannot, so the rep cannot save the opportunity" … Help says field-level security overrides the page layout in this combination. The layout's required setting has no effect and the field stays read-only, so the rep is not blocked from saving.
Do not confuse it with a similar setting
Help recommends restricting field access with field-level security, which also reduces the number of page layouts you maintain. A field made universally required in its field definition is a different case: it appears on edit pages regardless of field-level security.