Getting Select Component Value AND Label
I want to put the value of the selected item in one field in a collection and the label in another.
My mapping
The JS code was a refresh of the component that did not help.
The above mapping transfers the value correctly, but just the first label in the list transfers.
For testing, I used JS to place the value of the select component's selected item into an input. That worked fine.
var one = Appery("task_select").val();
Appery("testinput").val(one);
But I got something dd when I tried to do the same for the labels:
var one = Appery("task_select").text();
Appery("testinput").val(one);
returned : " Select Task... Design Sample Procurement Delivery Setup Demolition Removal Repairs Prep Build " which happens to be all of the labels, regardless of which item is selected.
Any suggestions?