0

I have a custom object with two fields:

1) Start_Date__c - date
2) Start_Month_Year__c - Formula(Text)

When the record is view (detail) I just want to show Start_Month_Year__c (formula field) and hide Start_Date__c

How can I do that?

I have tried to play around with FLS likeVisible/ReadOnly but does not work and both fields are showing in Detail/Edit.

Is that possible to achieve using standard page layout?

  • 1
    Your question is confusing because formula fields are not displayed in edit mode on a standard page layout. Can you give more details about what is happening? – David Cheng Nov 8 '18 at 1:27
  • @DavidCheng: I updated my question, I remove the second line which I was ref to EDIT page but hopefully my question make sense. – Nick Kahn Nov 8 '18 at 1:29
  • Pretty sure I missed something. You should be able to display the formula field without the reference field being displayed (FLS or removed from the layout itself). In fact, that is one of the ways to get around FLS - if that is your thing. Are you trying to limit the visibility through some other means? Were you not able to see the calculated value or the field itself? – Prashanth K Nov 8 '18 at 2:27
  • I just want to show Start_Month_Year__c (formula field) and hide Start_Date__c in view (detail) page. – Nick Kahn Nov 8 '18 at 2:32
  • So you need the Start_Date field on the edit layout, but you want to hide it on the view layout. Is that right? – Shane Steinfeld Nov 8 '18 at 3:17
0

I don't this is work in Salesforce Classic as there an idea was raised for that : https://success.salesforce.com/ideaView?id=08730000000Zpy4AAC .

I think you can put formula fields in Visualforce page and embed it in Standard Page Layout.

  • i don't want to go with VF page route... – Nick Kahn Nov 8 '18 at 1:35

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.