SOLVED

Re: How to toggle 2 fields in Forms 2.0

Go to solution
SanfordWhiteman
Level 10 - Community Moderator

Re: How to toggle 2 fields in Forms 2.0

Way too much duplication there and it won't scale.  Do it like this: MktoForms2 :: Indie Checkboxes to Virtual Radio Set Advanced

This version uses an array of collections.

     [

          'input[name=myName], #myId',

          '#myFieldset input[type=checkbox]',

          '#anotherCbx1, #anotherCbx2'

     ]

This will allow checked checkboxes in only 1 of 3 collections, while allowing multiple elements to be checked within a collection.

Grégoire_Miche2
Level 10

Re: How to toggle 2 fields in Forms 2.0

Cool and Thx