You need to sign in to do that
Don't have an account?
Barbora Otcovská
Custom Lightning component-recordviewform
Hello everyone, I am basically advanced administrator, but I am trying to become a developer (so please, imagine explaining your answer to a toddler, so that i could understand:)) and on one of our projects I came across this issue:
We have custom lightning coponent, that is supposed to display some chosen fields. Basically, the code is based on this https://developer.salesforce.com/docs/component-library/bundle/lightning-record-view-form/documentation article.
We need icons, to be displayed there (so we are basically displaying formula fields), BUT it looks like the formula field itself has to be added to given page layout in order to display it in the component....can anyone tell why is it like this and if there is some workaround?
Thank you so much:)
We have custom lightning coponent, that is supposed to display some chosen fields. Basically, the code is based on this https://developer.salesforce.com/docs/component-library/bundle/lightning-record-view-form/documentation article.
We need icons, to be displayed there (so we are basically displaying formula fields), BUT it looks like the formula field itself has to be added to given page layout in order to display it in the component....can anyone tell why is it like this and if there is some workaround?
Thank you so much:)
If you are using LWC instead of Aura... congrats and continue reading.. If you would like to display certain fields, you can just list them in a variable and output them.. like this:
IN THE HTML FILE:
IN THE JAVASCRIPT FILE: