Flip Switch EVENT

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
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Flip Switch EVENT

Post by JohnR »

I have a form with 3 Flip Switches with Yes/No settings.
When the 3rd switch is selected I want the value to change from NO to Yes and then display
a Submit button. On the first 2 switches the values change from No to Yes as expected. On the
third the Event triggers properly, but the value stays at NO.
Just wondering what I'm doing wrong?
Clicking on the first field in the form (Marriage Date) hides the Submit button.
ridgley.ca/mltest.php
Last edited by JohnR on Wed Dec 16, 2020 4:52 pm, edited 2 times in total.
User avatar
Pablo
 
Posts: 22503
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Flip Switch EVENT

Post by Pablo »

The URL does not seem to be valid.
Also note that I cannot see what you have done based on the HTML code.
If you need help, then please provide a demo project.
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Flip Switch EVENT

Post by JohnR »

I did indeed have an error in the link - that has been corrected.
How do I attach the project?
User avatar
Pablo
 
Posts: 22503
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Flip Switch EVENT

Post by Pablo »

JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Flip Switch EVENT

Post by JohnR »

I uploaded the file - testing.wbs to my server.
Website ridgley.ca
User avatar
Pablo
 
Posts: 22503
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Flip Switch EVENT

Post by Pablo »

What is the full URL of the file?
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Flip Switch EVENT

Post by JohnR »

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

Re: Flip Switch EVENT

Post by Pablo »

Sorry, but this link does not work for me.
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Flip Switch EVENT

Post by JohnR »

I uploaded the file testing.wbs to the same server / folder my website, ridgley.ca, is on.
I guess I'm unsure as to what you're looking for. I can provide the IP address, but that would require
you having User ID / Password to access the folder.
User avatar
crispy68
 
 
Posts: 2913
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Flip Switch EVENT

Post by crispy68 »

When clicking on your link I'm getting a 404 error. Maybe .zip the file up and then upload the .zip folder to your root folder and supply a link to this zip folder.
User avatar
Pablo
 
Posts: 22503
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Flip Switch EVENT

Post by Pablo »

I'm looking for the file 'testing.wbs'
However, it is not at the specified location:
www.ridgley.ca/testing.wbs

Maybe it's in a different folder?
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Flip Switch EVENT

Post by JohnR »

I created a folder called 'test' and placed a zipped version of testing.wbs in it.
www.ridgley.ca/test should give you what want.
User avatar
BaconFries
 
 
Posts: 5653
Joined: Thu Aug 16, 2007 7:32 pm

Re: Flip Switch EVENT

Post by BaconFries »

Still the same as you can see from the screenshot
Image
Lets try and make this simple please go to mediafire setup a account upload the .wbs and provide the generated url and post it here.
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Flip Switch EVENT

Post by JohnR »

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

Re: Flip Switch EVENT

Post by Pablo »

Thanks for the project.

You did not add 'return true' as documented here:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=37833
JohnR
 
 
Posts: 62
Joined: Sat Mar 03, 2018 11:44 pm

Re: Flip Switch EVENT

Post by JohnR »

I have added the java script and the Switch now toggles, but the second Event,
which is 'Show' doesn't activate. I changed the order of the Events, but it does
not seem to make a difference.
User avatar
Pablo
 
Posts: 22503
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Flip Switch EVENT

Post by Pablo »

'Show' should be the first event. 'return true' is always the last.
I have tried this wot your project and it works.
Post Reply