How to make multiple queries for multiple words

@harborlightco Your code has many errors and I’m not sure how it worked at all…

For example, in this short segment of code:

let str = 'Searchbox';
let words = str.split(" ");

The variable str is now equal to the string “Searchbox”, and words ends up with the word “Searchbox” as it’s only item in the array of results. If you want the value of the Searchbox element, you should write:

let filterValue = $w("#SearchBox").value;

This line of code only prints the string “SearchBox” to the console.
console.log(‘SearchBox’);

This line of code doesn’t really do anything.

const filterValue = ("words").value

The result is that filterValue is undefined.

To get the array of words from your Searchbox, do this:

let str = $w("#Searchbox");
let words = str.split(" ");

Each word in the array would be accessed by its index number. So…

let first = words[0];    // get the first word
let second = words[1];   // get the second word

You will need to familiarize yourself with basic coding concepts to accomplish what you want. There are a wealth of Javascript coding sites which will help you learn Javascript from basic to advanced - Javascript.info is a good one. The Corvid Resources page provides tutorials, examples, and articles on getting the most out of Corvid.

You may also want to check out the WixArena - it’s a hub where you can look for Corvid (and other) experts for hire.