You need to sign in to do that
Don't have an account?
doubleminus
How to lock a layout section using Apex
I want to lock all of the fields within a layout section if a picklist value is selected.
So for example, if you choose a picklist value "Purchased" instead of "Leased"...the "Lease Information" layout section becomes locked or otherwise uneditable. Is this possible? Any hints on the best way to go about this?
I mean I know it should just be a basic IF THEN statment "IF acquisition_type__c == Leased THEN ..."
Not sure how to put this into Apex, or what the best approach is, for locking an entire section. Or is there no way to lock an entire section in one foul swoop?
Thank you.
Nate
So for example, if you choose a picklist value "Purchased" instead of "Leased"...the "Lease Information" layout section becomes locked or otherwise uneditable. Is this possible? Any hints on the best way to go about this?
I mean I know it should just be a basic IF THEN statment "IF acquisition_type__c == Leased THEN ..."
Not sure how to put this into Apex, or what the best approach is, for locking an entire section. Or is there no way to lock an entire section in one foul swoop?
Thank you.
Nate
So could I use some Apex to have it make that section invisible upon save? So if you choose "Purchased" and hit Save...that Lease Info section disappears? (or it can lock too, or otherwise become inaccessible).