SOLVED: Populate element value in new record with user choice from dropdown

@tdb7942 The onReady() fires only once - when all of the elements of the page are loaded. It’s not meant to reside inside of other functions. You can define element functions inside of the onReady function like this:

$w.onReady(function () {
    $w("#newTopicButton").onClick((event) => {
        $w("#textInput").value = $w("#dropdown").value;
    })
});

Or if your button function is “properly registered” in the property sheet, you could also do it this way:

$w.onReady(function () {

});

export function newTopicButton_click(event){
    $w("#textInput").value = $w("#dropdown").value;
}