TOPIC:

Breezingfrom uncheck one checkbox when another is 4 years 7 months ago #179517

  • Topic Author
  • slaborie
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
Hi ... I have a section, with 2 fieldsets side by side. Each has a checkbox on top, and some text fields underneath using visibility rules.

How do I get one checkbox to !uncheck when another is !checked ? ... kind of struggling with that.

thanks s.

Please Log in or Create an account to join the conversation.

Last edit: Post by slaborie. Reason: typos

Breezingfrom uncheck one checkbox when another is 4 years 7 months ago #179531

  • lovre's Avatar
  • lovre
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2667
  • Karma: 76
  • Thanks: 329
Hi,

I'm sending you a form in a package which has this feature. Just download, unzip and install via package installer (BF configuration).

What you need to do is create a change actionscript for those two checkboxes, let's say 1 and 2. The script for the first would be:
function ff_1_action(element, action)
{
  if(element.checked)
{ff_getElementByName('2').checked=false;}
else if(!element.checked)
{ff_getElementByName('2').checked=true;}
} // ff_1_action
and for the second:
function ff_2_action(element, action)
{
  if(element.checked)
{ff_getElementByName('1').checked=false;}
else if(!element.checked)
{ff_getElementByName('1').checked=true;}
} // ff_2_action

Let us know if you need further assistance
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
Attachments:

Please Log in or Create an account to join the conversation.

Breezingfrom uncheck one checkbox when another is 4 years 7 months ago #179544

  • Topic Author
  • slaborie
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
Hi lovre ... thanks. Works almost as needed. The issue I have right now, is that with the actionscript the visibility rules I have do not work (setting action to change) or only work on second click (setting action to click)

I try to attach the form I work on as package ... hope I did that right
Attachments:

Please Log in or Create an account to join the conversation.

Breezingfrom uncheck one checkbox when another is 4 years 7 months ago #179555

  • Topic Author
  • slaborie
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
Hi lovre ... I think I figured it out ... its a logic problem on my site. I need to merge both visibility rules, right now they are seperated, but they are dependend. thanks

Please Log in or Create an account to join the conversation.

Breezingfrom uncheck one checkbox when another is 4 years 7 months ago #179559

  • Topic Author
  • slaborie
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
maybe you can still take a look ...

Please Log in or Create an account to join the conversation.

Breezingfrom uncheck one checkbox when another is 4 years 7 months ago #179564

  • lovre's Avatar
  • lovre
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2667
  • Karma: 76
  • Thanks: 329
Hi,

We have made some changes to your form. We used a radio group element instead of two checkboxes. It's much easier this way. We made a new radio group element, named it ShippedBy and define it like this:
0;Shiped by handcarry;h
0;Shipped by airfreight;a
and have only these 4 visibility rules:
turn off section fieldset1 if ShippedBy is a
turn on section fieldset1 if ShippedBy is h
turn off section fieldset2 if ShippedBy is h
turn on section fieldset2 if ShippedBy is a
I'm sending your form in a package. Just download, unzip and install via package installer (BF configuration).

Please let us know if this is working for you.
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
Attachments:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.049 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!