TOPIC:

Auto select checkbox group 1 month 4 weeks ago #247290

  • Topic Author
  • mrperfectpz
  • Away
  • Gold Breezer
  • Gold Breezer
  • Posts: 340
  • Thanks: 0
Hi Tihana,

Sorry this doesnt work, it selects all in second checkbox group

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

Auto select checkbox group 1 month 4 weeks ago #247316

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1707
  • Karma: 3
  • Thanks: 154
Hi,

sorry my fault. I forgot that you want check two same value
Here is:
function ff_NAMEFIRSTCHECK_action(element, action)
{
    switch (action) {
        case 'change':
var val1=jQuery('[name="ff_nm_NAMEFIRSTCHECK[]"]:checked').val();
var val2=jQuery('[name="ff_nm_NAMESECONDCHECK[]"]:not(:checked)').val();
if(val1==val2)
{
jQuery('[value="'+val2+'"]').prop('checked', true);
}

            break;
        default:;
    } // switch
} // ff_NAMEFIRSTCHECK_action

Regards,
Tihana

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

Last edit: Post by tihana.krivic. Reason: forgot to add "=="

Auto select checkbox group 1 month 4 weeks ago #247321

  • Topic Author
  • mrperfectpz
  • Away
  • Gold Breezer
  • Gold Breezer
  • Posts: 340
  • Thanks: 0
Hi Tihana

When I click different selections in first checkbox group, it will select 1,2,3,4,5 and so on in second checkbox group. Also when I uncheck them from first checkbox group it will continue select in second checkbox group.
Sorry, for a second I thought you had it, I was a little excited.

Kind Regards

Jerry

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

Auto select checkbox group 1 month 4 weeks ago #247327

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1707
  • Karma: 3
  • Thanks: 154
Hi,

I edit something in message above, please test it, if it doesn't work, I will create example as soon as possible

Regards,
Tihana

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

Auto select checkbox group 1 month 3 weeks ago #247329

  • Topic Author
  • mrperfectpz
  • Away
  • Gold Breezer
  • Gold Breezer
  • Posts: 340
  • Thanks: 0
Hi Tihana

I tried that but still not working.

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

Last edit: Post by mrperfectpz.

Auto select checkbox group 1 month 3 weeks ago #247331

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1707
  • Karma: 3
  • Thanks: 154
Hi,

sorry, but I think I misunderstood you.
So, you have two checkboxgroup. If someone check first value from one checkboxgroup, then second checkboxgroup is checked. (values are different in this checkbox).
If I misunderstood again, please correct me, that I may help you as best I can :)

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
Time to create page: 0.045 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!