Hi,
I got a Dropdown menu and a repeater that displays the selected data from the dropdown menu.
I use this code for that:
import wixData from 'wix-data' ;
let selectedBezirk = "";
export function dropdown1_change(event, $w) {
wixData.query("Bezirke")
.eq("title", $w("#dropdown1").value)
.find()
.then( (results) => {
let firstItem = results.items[0];
selectedBezirk = firstItem._id;
wixData.query("repeaterdata")
.eq("referenz" ,selectedBezirk)
.find()
.then ( (results) => {
$w("#repeater1").data = results.items;
} )
.catch( (err) => {
let errorMsg = err;
});
});
Now I want to get the email from the selected Item above to be in an input field
The code above shows the whole Item(row), now I need another code to only show the mail (column)
Is that somehow possible?
Thanks for your help!