Using an ON/OFF switch

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Using an ON/OFF switch

Post by alex4orly »

First time I am trying to use it :

https://ourvilla.net.au/vlnew.html

But, when clicking the Submit button, I want to check for each of those 2 switches, either if they oar ON or OFF or what is the Text on them at that moment.

I am trying to use - document.getelementbyid()

But, don't manage to get any result

Thanks
wwonderfull
 
 
Posts: 1440
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Using an ON/OFF switch

Post by wwonderfull »

For using an ON/OFF switch I see there is no way to validate whether anyone has checked it or not because it does not have the validate panel. So from my perspective there is no way to know if a person clicked on the switch or not.

Although you can literally see the text in the switch box I don't know where you want it again to see, but in the switch maybe you can use a text to show and hide by on and off. If you still think it is not the solution maybe you can use "Radio Button" or "Check Boxes".
User avatar
BaconFries
 
 
Posts: 5648
Joined: Thu Aug 16, 2007 7:32 pm

Re: Using an ON/OFF switch

Post by BaconFries »

Hi Alex from the url it looks like you are using Q'n'E for this so I can't help. With this said in WWB16 a "New" feature was added see the following
Form
- New feature: Normally, if a checkbox or flipswitch is unchecked then the browser will not send the value to the server. In WWB16, you can now also set a value for the ‘OFF’ state! You can set the OFF value, by using two values separated by a pipe-symbol. For example: ON | OFF
See url:
https://www.wysiwygwebbuilder.com/forum ... =1&t=89447

Any questions related to the use of Q'n'E should really be made at Q'n'E forum...
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Using an ON/OFF switch

Post by alex4orly »

Hello again,

Long time to hear... Yes, I am only using QENWB (I have no longer any Windows enviropnment.
1) I assumed (maybe wrong of me) that any object in there is also available here
2) In that forum, the only one I vere get any feedback is Pablo himself, no idea why....

Thanks for the feedback, I will look at that link.

After looking, I am NOT clear - where to set an ON | OFF value?

Cheers
User avatar
Pablo
 
Posts: 22491
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Using an ON/OFF switch

Post by Pablo »

This feature is not (yet) available in QENWB. It will be available in the next version, planned for later this year.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Using an ON/OFF switch

Post by alex4orly »

Thanks
WWBman
 
 
Posts: 918
Joined: Fri Jan 08, 2010 6:10 pm

Re: Using an ON/OFF switch

Post by WWBman »

Hi Alex, I know this is off-topic but I'm curious and would love to know what was the main reason for you changing to Linux.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Using an ON/OFF switch

Post by alex4orly »

Hello there,

Several reasons:

1) I have been with Windows for some 30 years, I got sick of the updates the need to restart the machine each time. In Linux it does it in the background and you very seldom are prompted to restart.
2) When there are updates, you can make a choice, which of them to take, which to ignore
3) The speed at boot time, nothing to compare
4) The variety of Application choices, all for free - try, you don't like - remove them
5) The support forum, very responsive, unlike Microsoft
6) Many options for Desktop design
7) Eeverything is configurable
8) The LibreOffice package (Replacement for MS Office) is fantastic

The switch was not easy, but I am very happy now
The ONLY thing I miss is WB

Cheers
WWBman
 
 
Posts: 918
Joined: Fri Jan 08, 2010 6:10 pm

Re: Using an ON/OFF switch

Post by WWBman »

Hi Alex,

That's interesting.
I have Linux on one of my laptops.
I'm sticking with Windows.
Thanks for your reply.
Post Reply