Salesforce Fact #695 | getFieldDisplayValue in LWC

How do you access localized values for field values of record in LWC? We can use the getFieldDisplayValue module for the same.

In this example, we have added french translations for the Account Rating picklist field and we are getting the localized value based on user's language using getFieldDisplayValue.

Reference: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_get_field_display_value

Attached are the screenshots.






Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow