Skip to main content
More clarity
Source Link
JaKu
  • 357
  • 2
  • 4
  • 10

Is there a way to get Standard field translations in Lightning Component? I know that you can get custom label label_name viaby using (in the .js controller)

$A.getReference("$Label.c.label_name"));

But is there something similar for Standard fields? For field FirstName on Account object I've tried

$A.getReference("$Label.Account.FirstName"));
$A.getReference("$Label.c.Account.FirstName"));
$A.getReference("$Label.c.Account_FirstName"));

But with no luck. Is there different namespace, or is there completely different way about this?

Is there a way to get Standard field translations in Lightning Component? I know that you can get custom label label_name via

$A.getReference("$Label.c.label_name"));

But is there something similar for Standard fields? I've tried

$A.getReference("$Label.Account.FirstName"));
$A.getReference("$Label.c.Account.FirstName"));
$A.getReference("$Label.c.Account_FirstName"));

But with no luck. Is there different namespace, or is there completely different way about this?

Is there a way to get Standard field translations in Lightning Component? I know that you can get custom label label_name by using (in the .js controller)

$A.getReference("$Label.c.label_name"));

But is there something similar for Standard fields? For field FirstName on Account object I've tried

$A.getReference("$Label.Account.FirstName"));
$A.getReference("$Label.c.Account.FirstName"));
$A.getReference("$Label.c.Account_FirstName"));

But with no luck. Is there different namespace, or is there completely different way about this?

Source Link
JaKu
  • 357
  • 2
  • 4
  • 10

Is there a way to get Standard field translations in Lightning Component?

Is there a way to get Standard field translations in Lightning Component? I know that you can get custom label label_name via

$A.getReference("$Label.c.label_name"));

But is there something similar for Standard fields? I've tried

$A.getReference("$Label.Account.FirstName"));
$A.getReference("$Label.c.Account.FirstName"));
$A.getReference("$Label.c.Account_FirstName"));

But with no luck. Is there different namespace, or is there completely different way about this?