Skip to main content
2 of 4
Format code
David Reed
  • 93.7k
  • 14
  • 90
  • 166

Fetch Label of picklist value instead on API in lightning

I have the following piece of code in my JS controller

var controllerValueKey = event.getSource().get("v.value");

Here the above code is called when picklist value is changed. Here var is correctly pickling up the API value of a picklist field which I have chosen.

What I want is the label instead.

Can I do this in my JS?

Rimii
  • 361
  • 1
  • 6
  • 28