i want to my drop down list if i choose in the first drop down forms and template the second drop down will show the category that inside of the forms and template but if i choose other category in the first drop down it will show new category please help me thank you
You will need to do this in code.
Save the items in a database or in some variable on the page if it is not much, then add a function after changing the first to filter the items for the second.
and then place them in the code as well. so
How can i save this web page
var parmetres = [
{ “color” : “yelo” , “label” : “Who’s on first!” , “value” : “first” },
{ “color” : “yelo” , “label” : “What’s on second” , “value” : “second” },
{ “color” : “wite” , “label” : “I Don’t Know is on third” , “value” : “third” }
];
$w ( “#dropdown1” ). onChange (()=>{
let items = parmetres . filter (( d )=> d . color === $w ( ‘#dropdown1’ ). value )
$w ( “#dropdown2” ). options = items
})
PLEASE HELP ME WITH MY WEB PAGE PLEASE