How would I create a form for car showroom?

Hi all,

I’m trying to create a form for users to search depending on what they want such as model/make/budget etc.

I have attached a screenshot of an example.

Thank you.

Dan

Is this possible with Wix code? I couldn’t find an app for it.

Dan

Hi Dan,
It is possible with Wix Code
Check out this sample for the search button:

  function onClick_searchButton() {
	foundCars = [];
	wixData.query('cars')
	.find()
	.then(results => {
	   let items = results.items;
    		items.forEach(item => {
			if (($w('#dropDownBrand').value === item.brand) && ($w('#dropDownMinPrice').value < item.price) && ($w('#dropDownMaxPrice').value > item.price)) {
			foundCars.push(item);
			}
		});
	})
	.then(() => {
	   setTableWithFoundCars(foundCars);
	})
  }

You are welcome to paste your code here and we’ll do our best to assist you
Good luck!
Roi

hey what did you use to display your cars on the show room page

you copy paste this code in the code editor to have the search bar section ? or you need another tools to be install ?

Heey! i have a same problem/ Need solution

What exactly is the issue/problem here? (открыть новую тему)

Please feel free to open an own new post with your own issued situation.
Describe your issue as most detailed as possible, than you surely will get some help on it :wink:

Old post → can be closed!