Hi All,
Hope someone can help
This is the page:
User actions on the page:
- user selects brand in the first dropdown.
- products associated with the brand selected appear as options in the second dropdown
- user selects a product from the second dropdown
- user hits “display” button
- the text in red changes to display the product that user has selected
scenario 1: Brand A has more than one product → user select one product from the list in the second dropdown and hits the button → the text in red displays the name of the product selected
scenario 2 (the problem) : brand B only has one product → user selects the only product that appears in the second dropdown and hits the “display” button → the red text box disappears .
This is my onClick event code, in case I have missed anything
var attempt = 100;
export function displayButton_click(event) {
$w(‘#text41’).text = $w(“#productList”).value
}
Thank you for any help!
Letizia