4

I'm creating a custom Object which is exact replica of Case Object. I have few fields like Contact Phone and Contact Email which is displayed only in the detail view but not in the Edit mode. Please suggest me how to accomplish this?

6

The only fields that appear only on detail pages, and not edit pages, are formula fields. For normal fields, you may choose to make the fields read-only, in which case they will appear, but not be editable by the user.

One possible solution is to have two fields per entry: a formula field and the actual underlying data value. You can have two different layouts assigned by profile or record type. When the user views the object, they will see the formula fields on the screen, but they won't appear in edit pages. Users with the actual field, and not the formula field, on the page will be able to edit the field normally.

| improve this answer | |
  • @Brian - After Summer 16 formula fields will also show in new and edit screen. Is there any way to hide from the new screen? – Saroj Bera Oct 12 '17 at 10:31
  • 1
    @SarojBera Nope. They would see the labels but not be able to edit the values. There's no way to hide them just during editing anymore. – sfdcfox Oct 12 '17 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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