Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I have a page layout with tons of fields, and I have a scenerio where based on a stage value, I only want the user to be able to edit a few fields. How do I do that?

share|improve this question

2 Answers 2

While you could use a validation rule, this is a perfect use case for Record Types. Using record types, you can display different page layouts, resulting in fewer or more fields shown, and with their own read-only attributes. You can change record types by way of workflow rules if you want to automate the process.

share|improve this answer
    
that's a good idea fox. I'm concerned about it being a maintenence point going forward. we literally have 100's of fields on the page layout. however, it doesn't seem like i have other options. –  nivyaj Jul 25 at 20:20
    
We have 140 or so fields, and a half dozen layouts. Maintainence isn't terrible as long as you don't overdo it. Also keep in mind that there's some special use cases, too. Dependent pick lists are great for controlling pick list options based on stage, for example. –  sfdcfox Jul 25 at 21:21

Your validation rule would be something like

Stage = 'Locked Stage'
&&
ISCHANGED(Value_To_Lock__c)

The problem being you'd have to list every field you don't want to change.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.