How do i redirect a page to a dynamic page having two drop down and one search button?
from this page having two drop downs and a search button
import { local } from 'wix-storage'; import wixLocation from 'wix-location'; $w.onReady(function () {}); export function searchButton2_click(event) { I don't know what to put here 😭😭 wixLocation.to('/properties3'); }
The Location is properties3
To this dynamic page
import wixData from 'wix-data'; export function searchButton_click_1(event) { search(); } function search() { wixData.query("Properties3") .contains("area", String($w("#dropdown3").value)) .and(wixData.query("Properties3").contains("details", String($w("#dropdown4").value))) .find() .then(results => { $w("#propertiesRepeater").data = results.items; }); }
Can Anyone Help Me Please!!!
I have got the code from this page
https://codequeen.wixsite.com/search-redirect
It works with a search bar, can you modify it for a drop down filter 🙂
I think it would be better to show your setup in your DB, related to the dynamic page and a screenshot of your dynamic page itself. It would make things to be a little bit easier.