I have an dropdown that allow custom enter and textfield. The user enter in the dropdown get added to list on exit and for textfield I have used an hidden dropdown where it store the values of textfield. Whenever i select any of dropdown values its should auto populate the texfield value. For this i have used index to get the value display.
Clicking on the add button and select the dropdown value, then the textfield is displaying the dropdown value instead of its selected index.