+ Start a Discussion
TestingSFUserTestingSFUser 

Want to give Visible & Edit access to a Field based on another Field.

Hi all,
I want to give Visible & Edit access permission to a specific field based on another field.
for eg: i have 2 fields..i.e. Status__c and Priority__c.
now if Status__c field is equal to "Normal" then i want to give Visible & Edit access permission to the Priority__c field. 
pls suggest any ides.
Thanks
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Sukumar,

We can make one field visible based on other field in the layout by using dynamic forms. If that field is visible then only user can edit it i guess. This should solve the issue.

Please find the below article for the same.

https://www.salesforceben.com/salesforce-dynamic-forms-overview-deep-dive-tutorial/

If this solution helps, Please mark it as best answer.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Sukumar,

You can do this by using field dependency also. 

Controlling field: Status__c
dependent field : Priority__c

Steps to create field dependency:
go to the respective object fields
                        --> Custom Fields & Relationships
                              -->click on field Dependencies
                                   --> click on New 
                                          --> select the controlling field & dependent field
                                               --> choose the dependent picklist values for                                                           each controlling field picklist value.

Field depency will be look like below screenshot.
User-added image


If this helps, please mark it as best answer.

Thanks,
Ankaiah