Page 1 of 1

Flip Switch EVENT

Posted: Wed Dec 16, 2020 4:48 pm
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

Re: Flip Switch EVENT

Posted: Wed Dec 16, 2020 4:51 pm
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.

Re: Flip Switch EVENT

Posted: Wed Dec 16, 2020 4:58 pm
by JohnR
I did indeed have an error in the link - that has been corrected.
How do I attach the project?

Re: Flip Switch EVENT

Posted: Wed Dec 16, 2020 6:13 pm
by Pablo

Re: Flip Switch EVENT

Posted: Wed Dec 16, 2020 8:25 pm
by JohnR
I uploaded the file - testing.wbs to my server.
Website ridgley.ca

Re: Flip Switch EVENT

Posted: Wed Dec 16, 2020 9:05 pm
by Pablo
What is the full URL of the file?

Re: Flip Switch EVENT

Posted: Thu Dec 17, 2020 1:03 pm
by JohnR

Re: Flip Switch EVENT

Posted: Thu Dec 17, 2020 1:41 pm
by Pablo
Sorry, but this link does not work for me.

Re: Flip Switch EVENT

Posted: Thu Dec 17, 2020 11:12 pm
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.

Re: Flip Switch EVENT

Posted: Thu Dec 17, 2020 11:38 pm
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.

Re: Flip Switch EVENT

Posted: Fri Dec 18, 2020 7:02 am
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?

Re: Flip Switch EVENT

Posted: Fri Dec 18, 2020 6:30 pm
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.

Re: Flip Switch EVENT

Posted: Fri Dec 18, 2020 7:16 pm
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.

Re: Flip Switch EVENT

Posted: Mon Dec 21, 2020 6:31 pm
by JohnR

Re: Flip Switch EVENT

Posted: Mon Dec 21, 2020 6:43 pm
by Pablo
Thanks for the project.

You did not add 'return true' as documented here:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=37833

Re: Flip Switch EVENT

Posted: Mon Dec 21, 2020 7:00 pm
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.

Re: Flip Switch EVENT

Posted: Mon Dec 21, 2020 8:58 pm
by Pablo
'Show' should be the first event. 'return true' is always the last.
I have tried this wot your project and it works.