Hi @ibmretraitesqc , did you ever find a solution for this?
I am trying to do a similar thing with a form on my site. I would like to use the dropdown selection to populate the field labels and values of my form to match the data from the selected item. Then the form info to be submitted to a different database, based on the item selected.
I have already used the .getCurrentItem function for something else linked with the dropdown (see code below). So, I’m guessing it would be a matter of using this function to set the form fields and submit it to the correct database. Or am I wrong?
If anyone knows how to do this, I would really appreciate any help.
export function programSelectDropdown_change(event) {
if ($w('#programSelectDropdown').value === 'Soccer') {
$w('#soccerRegistrationBox').expand();
} else {
$w('#soccerRegistrationBox').collapse();
}
let itemObj = $w("#programsDataset").getCurrentItem();
let programDate = itemObj.coedSpringStart
console.log("program date:", programDate)
}