What are you trying to do with the above code? I don’t see you setting the switch - you’re just checking if it’s checked or not. Plus, the URL is much different when running in Preview than it is in Live.
Hi dear Yisrael, This switch input is showing on all pages. I need my switch input to be true if the URL contains “testingpage”, and to be false if the URL doesn’t contain “testingpage”. This is all I need. Thanks in advance!
I’m trying to use " User input " ’ Switch ’ to toggle between two websites… a very simple implementation.
There is going to be 2 different language websites (identical).
When user switch it on to ‘right’ it will redirect to English website and when it is turned off “left” it should go to the language website.
I’m not a coder but have done some basic implementations: Can someone tell me what exactly I need to do… with code that I can use.
Hi,
First of all you can use the tutorial for a multilingual site here . If you want to use switch element simply use wixLocation.to in the switch’s onChange event.