• #29876
    Salesforce | Ravi Ravi #72

    How to conditionally hide field in Salesforce?

    Hello all,

    Need help for below requirement.

    In Case object I have one custom field(Text) say Description and have another field say Private(Checkbox).

    When user create any case and mark Private as Checked (Checkbox) then Description field should be visible to only the Owner of the case (creator of  the cecord) and the users who are upward in the role hierarchy, and other users won’t be able to see this field.

    How we can achieve this? any idea?

    PS: I have already checked using Record type and different page layout.

    Thanks in advance, every help is appreciated.


    Tagged: , , , , , , ,

    Salesforce | shariq shariq #1

    Hi Ravi,

    You need to overwrite the standard detail page with custom visualforce page, where you can show/hide the field on custom logic in script.

    Hope this helps.

    Salesforce | Parul Parul #2


    I think you can’t hide fields depending on values in other fields. Most user will set up a validation rule (VR) because Salesforce doesn’t support this but if you to hide you can only do this by creating custom validation.




Viewing 3 posts - 1 through 3 (of 3 total)

Please to reply to this topic.


We're not around right now. But you can send us an email and we'll get back to you, asap.


About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2018 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?