You need to sign in to do that
Don't have an account?
Samuel Stevens
Understanding field level security/page layout required
I'm trying to better understand how field level security works with fields being required through page layouts. It seems there are 4 ways, you can make a field required:
1. When you create the field, you can tick the box to make it required
2. Through the page layout by clicking on the spanner/wrench next to the field
3. Go to the object - Fields, click on the field name (not edit or del) and you can select "required"
4. Go to Security Controls | Field accessiblilty, select the object, then the field and then you can edit through field access
What's confusing to me is field level security makes me think this is what you would use to make a field required, but it only allows you to select 'Visible' or 'Read'.
This came from trying to answer this question:
A custom field is made Read only from the Field level security and Required from Page layout. The Field will be?
A. Read Only for the User
B. Required for the User
C. Throws an error and don’t allow to make Read only field Mandatory from page layout
D. User is given a choice in a pop-up window
The Quiz gave the answer as A, but I tested it and find the answer is B.
Would appreciate any input on whether i'm understanding all this accurately - thank you!
1. When you create the field, you can tick the box to make it required
2. Through the page layout by clicking on the spanner/wrench next to the field
3. Go to the object - Fields, click on the field name (not edit or del) and you can select "required"
4. Go to Security Controls | Field accessiblilty, select the object, then the field and then you can edit through field access
What's confusing to me is field level security makes me think this is what you would use to make a field required, but it only allows you to select 'Visible' or 'Read'.
This came from trying to answer this question:
A custom field is made Read only from the Field level security and Required from Page layout. The Field will be?
A. Read Only for the User
B. Required for the User
C. Throws an error and don’t allow to make Read only field Mandatory from page layout
D. User is given a choice in a pop-up window
The Quiz gave the answer as A, but I tested it and find the answer is B.
Would appreciate any input on whether i'm understanding all this accurately - thank you!
Which of the following is the best way to make the Field Mandatory for everyone?
A. Page Layout
B. Validation Rule
C. Roles & Profiles
D. Field Level Security
I would select A or D. How would you decide which is "the best way"? I'm guessing it's asking about a field, so probably D.
Any input appreciated - thank you!
Because FLS makes field visiable not mendatory.
Pagelayout is not always the best idea since you might have pagelayout to your profile which doesn't make it necessary.
if you make field mandatory in page layouts,when u insert bulk data through dataloader that time it will not work,means allow to insert the data.
And as far as the page layout goes, Let's say One object O has 2 pagelayouts x and y. Profile A has layout X and Profile B has layout Y. If field Notes__C is required on X pagelayout and not on Y layout then profile B can save record without touching Notes__C.
Question 1 - Answer A. User has Read Only access. Here's why...
Note if you make field Required when creating a field there's no confusion.
Question 2 - Answer D - Field Level Security is correct.
FLS is the most correct answer here. Easiest way to implement something required for everyone. The exams may have several answers that are right, we need to choose the best solution if only one answer is allowed.
- Via Page Layout can be overridden by FLS ( Question 1 test above proves that).
- Validation rules can get into trouble if a field is validated against that is not on Page Layout. (I've had this happen). And there are intended to make fields "conditionally" required, not always required. They are for improving data quality.
- Roles & Profiles is a a test because you can access FLS via Profiles for already existing fields. But Profiles is not how to set a new field's requirement and you would need to apply this to all profiles manually if you approached this way.
Using FLS to make a field Required