Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Advanced Form

Security covered Maintenance fixes only 92 sites

This module simplifies forms by hiding less frequently used elements behind an "Advanced" button, keeping the user interface clean without compromising functionality or requiring complex permission setups. It uses CSS selectors to determine which form elements to hide and reveal.

A UI tweak to hide certain features or the form interface from normal use, but still have them available on the page for validation and quick access.

This slims down the UI to make things seem simpler, without overloading the maintenance tasks with layers of permissions, or removing any control from the user.

USAGE

When enabled, any configured form can have elements hidden (by css) for normal use, and a small client-side button [Advanced] can be pressed to reveal the rest of the form as needed.

CONFIGURATION

The syntax for defining which form elements are 'hidden' is based entirely on css selectors, with some shortcuts.
node-form:[#revision-information]
- will hide the revision information fieldset on node forms.
block-admin-configure:[#user-specific-visibility-settings]
- will remove a seldom-used option from block admin pages.

Use firebug or similar to find the correct selectors to choose your target form elements.

A number of additional css classes are inserted into the form element for additional, specific control.
Taxonomy terms selected on node forms are also set as context classes, so it's possible to define rules that only apply when a certain term is selected in the
form.
More instructions are on the config page, which can be found at
/admin/settings/advancedform (D6)
/admin/config/user-interface/advancedform (D7)

To debug the css or see how it works, look at the path '/advancedform_css'

Permissions (required)

The 7.x-1.0 release introduces a permission that provides access to the toggle button. If installing or upgrading, you should check user permissions and grant access to the roles that will have the ability to use advanced fields.

SEE ALSO

Written with reference to formfilter.module which does a similar job through access restrictions, whereas I want to trust my users, but avoid confusing
them. And clean up my own admin edit interface.
This module is intended to be more lightweight than formfilter, and does not have such an extensive admin UI. It is recommended you compare this module with that one and decide which suits you best.

vertical_tabs.module is excellent, and takes a different approach at minimizing the screen size and hiding unwanted elements.
This module has not been tested with and may not work well with vertical_tabs

OTHERS:
nodeformsettings.module - is a set of custom UI tweaks, half of which can now be done by this module.

compact forms - marginally tidies up some forms on the client side.

form defaults- advertises a UI for form_alter type operations. Untested

Jammer - advertises similar features, though due to the odd name, it didn't come up in any initial searches for similar solutions. It's got a D7 version, so may be worth trying.

Simplify does some of this also. It offers a limited pre-set list of page elements you can turn on and off with a config UI. It operates on the PHP side, so doesn't offer the on/off toggle.

BACKGROUND

This is more useful for in-house development with a set of trusted content editors. It was built for tutoring, where I needed to be able to demonstrate the functionality of the site as editors would see it, yet still have access to admin functions without messing around with switchuser etc.
So I switched off the clutter.
Collapsed fieldsets are a good start, but there's still too many of them by the time we start with ecommerce products etc.

Note this 'permission' isn't actually secure - the full form is still available to browser hacks - like disable css or js

CSS-hide trick for context-sensitive forms developed by dman 2006

Drupal 10–11

Ask your assistant about Advanced Form

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
10 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
2.0.0 Stable 10–11 Nov 25, 2025
2.0.0-alpha2 Pre-release 9–10 Oct 3, 2023