function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
adepewadepew 

How to reference record values in LWC property input.

Is it possible to reference record field values in a property string?

For example, say I have a property that gives a string input. I'd like the user to be able to enter something like: "The name of the account is: {Account.Name}. Their industry is: {Account.Industry}." which would return the proper values on the record page.
PriyaPriya (Salesforce Developers) 
Hey Alan,

Can you please elaborate the requirement and its use case ?

Thanks
adepewadepew
Hi Priya, I have a LWC with a message property field where the user can enter a custom message. I want the user to be able to reference a field value from the current record page in the custom message. For example, if the Account has a field called "Relationship Status" the user could enter "The relationship status is: {Relationship_Status__c}." and this would tranlsate to "The relationship status is: Green".