I have tried that and it seems that the data retrieved can only be displayed in a table. Probably because the query returns a string of data. I’m only interested in a single field, not the whole string.
export function clientName_change(event, $w) {
wixData.query(‘ClientProfile’)
// Query the collection for any items whose “clientName” field contains
// the value the user selected in the dropdown
.contains(‘clientName’, $w(‘#clientName’).value)
.find() // Run the query
.then(res => {
// Set the table data to be the results of the query
$w(‘#table1’).rows = res.items;
$w(‘#table1’).show();
});
}