Interactive Buttons

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
roygore
 
 
Posts: 143
Joined: Wed Mar 25, 2020 6:34 pm
Location: United Kingdom

Interactive Buttons

Post by roygore »

Is it possible to link two or more buttons interactive so that when clicking on one button it turns the other buttons off?

For example: I want to set up a list of options each with a button for users to choose from. They can only select one of the oprions. So when they click one of the buttons it automatically deselects the other buttons.

Here is an example of the kind of thing I want to create with just two options: https://use-lasting-power-of-attorney.s ... uk/cookies

I've tried to find a way of getting two buttons to interact using 'Events' to turn the other button off onclick, but so far no good. I've also tried using 'Conditions', but no luck.

Does anyone know of an extension that will do this?

If no extension does anyone know of a way to achieving what I need?

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

Re: Interactive Buttons

Post by Pablo »

This may be possible with conditions:
https://wysiwygwebbuilder.com/conditions.html
User avatar
roygore
 
 
Posts: 143
Joined: Wed Mar 25, 2020 6:34 pm
Location: United Kingdom

Re: Interactive Buttons

Post by roygore »

Thanks Pablo

I will give it a try.

Roy
User avatar
crispy68
 
 
Posts: 3059
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Interactive Buttons

Post by crispy68 »

Could you use form radio buttons?
User avatar
roygore
 
 
Posts: 143
Joined: Wed Mar 25, 2020 6:34 pm
Location: United Kingdom

Re: Interactive Buttons

Post by roygore »

Thank crispy68,

I've been working with Radio Buttons but I can't get them to interact.

Would be perfect if I could get the to work as required.

Roy
User avatar
roygore
 
 
Posts: 143
Joined: Wed Mar 25, 2020 6:34 pm
Location: United Kingdom

Re: Interactive Buttons

Post by roygore »

I see that the Form Wizzard extension has a panel with buttons that do exactly what I need.

How is it done in Form Wizzard?

Roy
User avatar
crispy68
 
 
Posts: 3059
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Interactive Buttons

Post by crispy68 »

for radio buttons to work, they need to be part of a form. It may help to read up on forms here: https://www.wysiwygwebbuilder.com/forms.html
User avatar
roygore
 
 
Posts: 143
Joined: Wed Mar 25, 2020 6:34 pm
Location: United Kingdom

Re: Interactive Buttons

Post by roygore »

Hurray! Got it sorted! Click here on my test site and scroll down the page: https://rlgconsulting.co.uk/testing/tri ... okies.html

Solution:
  • 1- Create form in a Layout Grid
    2- Insert 2 Radio Buttons (or Check Boxes) and call them 'One' and 'Two'
    3- Insert the buttons each into it's own Layout Grid (This is necessary to get the buttons to align vertically rather than horizonaly; also helps to adjust vertical spacing)
    4- Drage both button Layout Grids into one of the panels of the empty Layout Grid
    5- Adjust the Layout Grid panel holding the buttons to 1 unit wide to make the buttons stack
    6- Add a button and label it 'Confirm' (or as required)
    7- Settings for button 'One':
    Set Initial State to: 'Selected'
    Add a Condition: Condition = 'Selected'; Action = 'Disabled' ; Target = 'ID of buton Two'
    8- Settings for button 'Two':
    Set Initial State to: 'Selected'
    Add Conditions: Condition = 'Selected'; Action = 'Disabled' ; Target = 'ID of buton One'
    Add Condition: Condition = 'Not Selected'; Action = 'Disabled' ; Target = 'ID of Confirm button' (Inhibits Confirm button until Radio Button Two is selected)
    Add Condition: Condition = 'Selected'; Action = 'Enable' ; Target = 'ID of Confirm button' (Enables Confirm button when Radio Button Two is selected)
    '
I hope that makes sense. It seems to be working - of course it doesn't actually remove or disable the cookies.

Happy to share.

Roy

Note; It's a shame the forum drops the spaces - the steps above looked nicely layed out and easy to follow when I typed it.
Post Reply