joomla/joomla-cms — pull request #3379 by chivitli (2014-03-27 16:00:48+00:00)
Title: Adding the "showon" & hiddenLabel feature to JForm

This is like PR #3127, just in sync with the latest changes, and it also adds support for hidden labels on xml level. Here is the copy of the test instructions/description from the previous PR:

### Overview

In the Joomla Global Configuration we use showon attribute to show/hide certain fields based on the state of a "parent" field. You can see this for example with the FTP settings where the settings itself only show when "Enable FTP" is set to "Yes". It's also available for Component settings.

This PR takes this feature to the JForm so it can be used in any xml file.

### Testing

You can add a showon attribute to any config field you want to hide. For example in
modules\mod_finder\mod_finder.xml you add to line 94
showon="show_label:1". So it looks like this:
```

JGLOBAL_RIGHT

JGLOBAL_LEFT

MOD_FINDER_CONFIG_OPTION_TOP

MOD_FINDER_CONFIG_OPTION_BOTTOM

```

This will only show the "Label position" setting only if the "Show Label" is set to "Yes" (which has the value 1).

Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33295&start=0