You need to sign in to do that
Don't have an account?

Display a Formula field in a Lightning Component that is hidden in the Page Layout
Hi there,
I built a simple Lightning Component that display field of a record. The fields that I want to display in the component are all Formula fields, and I want to hide them in the Page Layout. When I hide them, the fields show as blank in the Lightning Component!! The only way to oversome this is to show the fields in the Page Layout.
Is there a way to show these fields in the Lightning Component and NOT in the Page Layout?
Note that I am using the below to display the field in the component:
Thanks.
Walid
I built a simple Lightning Component that display field of a record. The fields that I want to display in the component are all Formula fields, and I want to hide them in the Page Layout. When I hide them, the fields show as blank in the Lightning Component!! The only way to oversome this is to show the fields in the Page Layout.
Is there a way to show these fields in the Lightning Component and NOT in the Page Layout?
Note that I am using the below to display the field in the component:
<div class="slds-col"> <span>Deficiency<ui:outputRichText value="{!v.ConstRecord.Deficiency_Status__c}" /></span> </div>
Thanks.
Walid
These are all Formula fields, so they are all Read Only fields. If I remove them from the Layout, they won't show on the Lightning Component. But my problem is that I don't want them to be on the Component AS WELL AS on the page layout.
Any advice?
Thanks.Walid
https://developer.salesforce.com/docs/component-library/bundle/force:recordData/documentation