Last updated June 2, 2012. Created by jordojuice on February 25, 2012.
Edited by mitchell. Log in to edit this page.

Rules Forms Support allows users to manipulate forms when a form is built, during validation, or when a form submitted. Once events are activated for a form, users can define rules to accomplish tasks like validating form element values, setting form errors, redirecting users, or setting form titles. It was originally developed for and shipped with Rules 1 (Drupal 6), but since the release of Rules 2 (Drupal 7), the Rules Forms Support project has been moved to a separate, standalone module.

(D6) Form support

Rules forms support ships with Rules and allows you to manipulate/customize forms on your site with Rules. You have to enable events for a form that you want to use with rules (see the README.txt how to do that), then you get an event when a form is being built, during form validation and when a form is submitted.

You have many possibilities how to react on those events: you can check the value of a form element in a condition and you can use several actions: disable, hide or adjust weight of a form element; set the default value of a form element; insert prefix/suffix HTML code or set a form error.

About this page

Drupal version
Drupal 6.x, Drupal 7.x
Audience
Site administrators
Keywords
Rules, Rules Forms Support
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.