Copy Drop down List content to Text Input?

Is there a code for this?

Do you want to copy the selected item in the dropdown to a text input field?

Dropdown → Text Input
$w(“#text-input-field-id”).text = $w(“#dropdown-id”).value;

That will take the selected value and insert that value in the text input field.

Hi andreas,

Yes i do.
Dropdown → Text Input

i’ve tried the above code but it does not work. Any way to get around this?

Please post your code here so we can see what you’re doing and try to help.

hi Yisrael!. Can ya give an example how to link values from a dropdown to an input. When I choose State, District, Road, Number unit by Dropdown, then that will combine and appear in an addressInput. I use addressInput to connect to map, but I dont want users fill the form twice at the address part