Dropdown independent

@ffvii-serie-memorabi Thanks for the reply.

I see the issue. You are chaining wixData . query ( "VideoAll" ) and the first method is . eq ( "origin" , String ( $w ( "#dropdown1" ). value )) which means that this query is going to look for what’s in #dropdown1, regardless if it’s empty or not.

What you need to do is separate out the chain.

Your pseudo code should look something like:

function search() {

  if ($w("#dropdown1").value) {
    // Query 'Origin' only when #dropdown1 is filled
  } else if ($w("#dropdown2").value) {
    // Query 'classification' only when #dropdown2 is filled
  } else {
    // Query for both. You can use your original code on here
  }
}