How to populate a text, based on user selection in the dropdown.

@aisikalp
I support Ahmad’s opinion, but let’s not be too strict because you seem like a newbie to JS programming, who realy need some help, regarding the description of your issue and compared it with your provided code → it’s clear that you do not know what you are doing exactly.

This is what you want to achieve…

I would like to populate a message based on the selection of the user in the dropdown list but no success up to now. It seems so simple but for some reason not working. Here is the code I am using.
You want to create a → MESSAGE / STRING ← with the help of selected VALUE from a → DROPDOWN

So let’s do a very simple example!

Your SETUP would be:
1x Dropdown
1x Text-Box
+the following code…

$w.onReady(()=>{
    $w("#myDropDownIDhere").onChange(()=>{
        let mySelectedValue = $w("#myDropDownIDhere").value
        start_someAction(mySelectedValue);
    });
})

function start_someAction(mySelectedValue) {
    //put in here your code --> what should happen after DropDown was changed ???
    //For example....
    $w('#myTextBoxIDhere).text="This is my selected VALUE --> "+mySelectedValue+" from my dropdown."
}

All you need to be able to code → you can find in the Velo-API-Docs, like already shown/mentioned by Yisrael… Dropdown onChange()

Take a look onto the CONSOLE and see which results you get.