0

My mentor asked me this question,2 users with same profile, same page layout, same record type can see different fields based on their location. The answer is lightning record page, but how?

I have checked when you add the record detail component it doesn't allow you to edit the field and can't assign a particular field to any user or profile. Also, you can change visibility but it applied to all the profiles.

How can you achieve it?

1
  • 1
    Maybe like so: Go to Setup - User Interface - Lightning App Builder, click "New" and create a Record Page. Add a "Record Detail" to your page. Upgrade to "Dynamic Forms" and choose any layout as a boilerplate. Click on a field and configure a filter on the right side, "Filter Type" "Advanced". In "Select Field" choose User, choose City... Commented Feb 8 at 10:16

1 Answer 1

0

In Lightning record page, You can upgrade that page intoDynamic form. Once it's upgraded. you can set the field visibility based on condition as follows,

Field Section >> Set component visibility >> Advanced >> Record >> Owner >> location/country. 

So that you can show different Field section based on user's location/country.

Thanks.

1
  • Great!! Thank you for such a prompt response Commented Feb 8 at 11:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .