Help with Form Conditions

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
rongreen
 
 
Posts: 156
Joined: Thu Jun 06, 2024 4:36 pm

Help with Form Conditions

Post by rongreen »

I read the instructions on setting up conditions in a form and have gotten some to work, but I cannot seem to get the following to work:

Grids PaymentGrid and DeliveryMethodGrid:
Condition 1: When either RadioButton1 or RadionButton2 for PaymentGrid are selected, CustPickup in DeliveryMethodGrid is enabled and Shiptome is disabled.
Condition 2: When RadionButton3 in PaymentGrid is selected, both CustPickup and Shiptome are enabled.

What am I not seeing? If I have CustPickup and Shiptome enabled, then all buttons work but the conditions still do no work. Thanks for looking at this.



https://www.greensphotoimages.com/alljo ... ditons.zip
User avatar
Pablo
 
Posts: 23239
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Help with Form Conditions

Post by Pablo »

I am not sure what you are trying to do, but in my opinion the logic is not correct.
If you disable an element then it will not longer do anything. So, the conditions for the radio buttons will not work, because they are disabled by other conditions.
I think you should rethink the logic.
rongreen
 
 
Posts: 156
Joined: Thu Jun 06, 2024 4:36 pm

Re: Help with Form Conditions

Post by rongreen »

I am confused!
I thought I was following the directions in the WYSIWYG publication, “ Form Conditions and Calculations” (https://www.wysiwygwebbuilder.com/conditions.html where it says:

“Example 1: Enable the submit button with a Checkbox
Step 1
Create a form with a checkbox and a submit button. Add a label 'I Agree to the Privacy Policy'. Make sure the 'Disabled' property of the Submit is checked, so the button cannot be clicked initially.”

htmlStep 2
Open the 'Conditions' properties of the checkbox and add two conditions:
Condition: checked
Action: enable
Target: submit (the ID of the submit button).
and
Condition: not checked
Action: disable
Target: submit (the ID of the submit button).

Did I misread the directions?
User avatar
BaconFries
 
 
Posts: 5873
Joined: Thu Aug 16, 2007 7:32 pm

Re: Help with Form Conditions

Post by BaconFries »

Why have you disabled the radio button Shiptome? it doesn't make sense. Radio buttons work in groups one is always on one is off (not disabled). So the logic is CustPickup in On by default and Shiptome is Off, but if the user selects Shiptome then it becomes On, if you have disabled this then how can it be used?. Both radio buttons need to be enabled. The example you have shown works like this the user fills/selects the elements but before they are accepted then they need to check✔️ the checkbox or nothing happens.. What did you expect by disabling the radio and how did you think the example would work with the radio button disabled.
rongreen
 
 
Posts: 156
Joined: Thu Jun 06, 2024 4:36 pm

Re: Help with Form Conditions

Post by rongreen »

Thanks for the clarification and I think I understand your point. Maybe, you can help me with some suggestions on configuring things? What I want to do is when the user selects either the cash or check option the only option is Customer Pickup. If they select Paypal, that both Customer Pickup or Ship to me can be selected. How would I do this, or is it not even possible? I did re-enable the two buttons as recommended.
rongreen
 
 
Posts: 156
Joined: Thu Jun 06, 2024 4:36 pm

Re: Help with Form Conditions

Post by rongreen »

I found a solution. If either the Cash or Check Radio Buttons are chosen, then the "Ship to me please" is hidden". If Paypal is chosen then the action is chosen to "show" the "Ship to me please" option. The latter was set up because if they choose the cash check option and the latter disappears it will reappear when Paypal is chosen.
Post Reply