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
JayeeJayee 

lightning:select event

Hi

i would like to modify a form when i choose a pick value which returns input field show up and hidden event
How could this be enable? i cant find where i sort this thing out.
Best Answer chosen by Jayee
Jayant DasJayant Das
You will need to handle the changed value in the controller function, something as below. Then based on the value that you receive, you can perform operations as desired.
cmp.find("selectItem").get("v.value").

 

All Answers

Jayant DasJayant Das
Are you using onChange action on lightning:select?
JayeeJayee
Yes for now! but i dont exactly know modify when i pick a different value for ex if i choose a pick value "Blue" in lightning input form
  <option id="blue" value="blue"> 
choose blue input field show
choose red -> blue+red input field show 
choose yellow ->blue+Red+yellow input field show
                      
Jayant DasJayant Das
You will need to handle the changed value in the controller function, something as below. Then based on the value that you receive, you can perform operations as desired.
cmp.find("selectItem").get("v.value").

 
This was selected as the best answer