Hello. I’m trying to make a simple search element on my website that runs a query through my wix database and then changes text on the page and redirects you to a page defined in the wix database. It works good in preview mode; When I type in my search and press the button, the text changes and then a note pops up saying the url will work when it’s published.
I publish it and the button does nothing at all. I opened up Chrome console and it shows this;
Here is the simple code;