Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
For a custom form I tried to hide the full vertical-tabs container when a checkbox was unchecked. For that I used the #state property as described in the Form-API description. It didn't work because vertical-tabs don't have a wrapper around them to be used by state.js.
The proposed patch introduces a wrapper and adjusts state.js so that the visibility of a vertical-tabs fieldset can be triggered using #state.
Comment | File | Size | Author |
---|---|---|---|
#1 | vertical-tabs-state-invisible_7_16.patch | 1015 bytes | matthias_mo |
vertical-tabs-state-invisible.patch | 1015 bytes | torotil | |
Comments
Comment #1
matthias_mo CreditAttribution: matthias_mo commentedUpdated patch for Drupal 7.16
Comment #2
jrreid CreditAttribution: jrreid commentedDoesn't seem to work for me. This is probably a duplicate issue to http://drupal.org/node/1148950
Comment #3
Wim LeersIndeed a duplicate of #1148950: Applying #states to a vertical tab does not update the vertical tabs menu.