Conditions Conundrum

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
AliGW
 
 
Posts: 542
Joined: Thu Dec 19, 2024 3:41 pm

Conditions Conundrum

Post by AliGW »

I was having fun playing with this last night!

I am trying to create an online entry form where the user enters a number (between 1 and 4) in the spinner and the correct number of image entry sections will appear.

The page is set to show one at the outset, but despite the settings I have in the spinner's conditions section, if I increase the number to 2 or above, all three of the other image sections appear. If the number is 2, there should be two, and so on.

Someone please tell me what I am doing wrong here! :P

https://www.alisongwright.me.uk/EICC/AGW/
https://get.hidrive.com/i/dAE9cuo3

Thank you!
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
Pablo
 
Posts: 24597
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Conditions Conundrum

Post by Pablo »

What you’re trying to do isn’t possible with a spinner. You’ll need a select element here, since the user needs to choose from multiple options.

Here's an example:
https://www.wysiwygwebbuilder.com/suppo ... itions.zip
User avatar
AliGW
 
 
Posts: 542
Joined: Thu Dec 19, 2024 3:41 pm

Re: Conditions Conundrum

Post by AliGW »

Lovely - thanks.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
AliGW
 
 
Posts: 542
Joined: Thu Dec 19, 2024 3:41 pm

Re: Conditions Conundrum

Post by AliGW »

Interestingly, if I use the RESET button to reset the form, the drop-down resets to 1, but other image sections remain visible. There may or may not be a solution for this.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
AliGW
 
 
Posts: 542
Joined: Thu Dec 19, 2024 3:41 pm

Re: Conditions Conundrum

Post by AliGW »

The other issue, that I had not anticipated, is that any required fields that are hidden will prevent submission of the form.

I had hoped that any hidden part of the form would be ignored on submission.

Back to the drawing board!
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
Pablo
 
Posts: 24597
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Conditions Conundrum

Post by Pablo »

If the select is part of the form then it will reset, if it's not part of the form then this should not happen.

Otherwise , you will need to trigger a 'select' manually after the reset, because the script is not aware of external resets.
I had hoped that any hidden part of the form would be ignored on submission.
I think that only applies when the object itself is hidden not it's parent container is hidden.
User avatar
AliGW
 
 
Posts: 542
Joined: Thu Dec 19, 2024 3:41 pm

Re: Conditions Conundrum

Post by AliGW »

I am not sure I understand our answer, Pablo.

As in the file you kindly provided, the number selector is part of the form and correctly resets on submission. What would be nice is to have all but the Image One section disappear when the form is reset as well, as they would if I changed the selector back from a 2 to a 1, for example.
I think that only applies when the object itself is hidden not it's parent container is hidden.
Ah, OK - well, I can live with that!
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
Pablo
 
Posts: 24597
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Conditions Conundrum

Post by Pablo »

I'm sorry there is no standard solution for this. This will require a custom script.
The conditions logic is not called on a form reset.
User avatar
AliGW
 
 
Posts: 542
Joined: Thu Dec 19, 2024 3:41 pm

Re: Conditions Conundrum

Post by AliGW »

OK, not to worry.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
Post Reply