You are here

README.txt in Rules Forms Support 7.2

Same filename and directory in other branches
  1. 7 README.txt
 -------------------------------------------------------------------------
 |||||||||||||||||||||||||||||| RULES FORMS ||||||||||||||||||||||||||||||
 -------------------------------------------------------------------------

 maintained by Jordan Halterman <jordan.halterman@gmail.com>
 http://drupal.org/project/rules_forms

 Thanks to klausi and fago for original development and maintainance of
 the earlier version of Rules Forms, which was included with Rules 1.

 Installation
 ------------
 This module requires Rules 2 (http://drupal.org/project/rules).
 Navigate to administer >> modules and enable the Rules Forms module.


 Getting started
 ---------------
 This is a short usage guide to build Rules on you forms:

 * Go to the "Form events" page in the Rules administration menu
   (admin/config/workflow/rules/forms).
 * Select the checkbox "Enable event activation messages on forms" and hit the
   "Save settings" button.
 * Go to the form on your site that you would like to customize with Rules, e.g.
   go to 'node/add/article' to enable events on the "Create Article" form.
 * On the top of the page you see a drupal message with a link to activate
   events for the form, click it.
 * Enter a human-readable label for identifying the form.
 * In some cases you may want to enable events for individual buttons on the
   form. To do so, check the checkbox labeled "Enable button level
   validate/submit events".
 * Confirm the activation by clicking the "Activate" button.
 * Go to the "Triggered rules" admin page (admin/config/workflow/rules) and
   click the "Add a new rule" link.
 * Fill out the label, choose a form event by selecting one in the "Rules Forms"
   group and confirm with "Save changes".
 * Now you can add conditions and actions to react on the form event.


 Activating button level validate and submit events
 --------------------------------------------------

 In some cases, form level validate and submit events may not appropriately
 trigger your rules because forms may implement button level validate or submit
 handlers or you may just want to target a specific form button for validate
 or submit events. To activate button level validate and submit events:

 * When activating events for a form, select the option labeled "Enable button
   level validate/submit events".
 * When creating new rules, you will find events for individual form buttons.
 * Note: In Rules 2.x you can create rules that react on multiple events. Rules
   forms rules can be invoked on form and button level validate/submit events.


 Creating form element conditions and actions
 --------------------------------------------

 The Rules forms module allows you to manipulate single form elements, where you
 need the ID of the element. This guide shows you you how to find them.

 * Create a new reaction rule using the Rules interface.
 * Select the desired event for the target form.
 * On the following screen, you will be displayed a select list of form
   elements. Select the target form element from the select list and click
   "Continue".
 * Note: Form elements are categorized by type to make them more easily
   identifiable.
 * In the event that the form element select list is not populated, try
   rebuilding form element data as described below.

 #1429622: *The Rules data selector cannot currently be used to select form
   elements*


 Using the form element inspection tool
 --------------------------------------

 Rules forms support provides a tool for inspecting form elements on active
 forms. This tool can be used to determine the current attributes of form
 elements and to inspect elements following the execution of rules.

 * Navigate to the "Form events" page in the Rules administration menu
   (admin/config/workflow/rules/forms)
 * Select the checkbox labeled "Enable form element inspection tool".
 * Click the button label "Save settings".
 * To use the inspection tool, navigate to a form whose events are activated.
 * Mouse over the question mark (?) near any form element to display a list of
   that element's current attributes and their values.


 Rebuilding form element data
 ----------------------------

 In the event that form elements are not being displayed within the element
 select list in the rules interface, you can rebuild Rules forms' internal
 storage of form element data.

 * Navigate to the "Form events" page in the Rules administration menu
   (admin/config/workflow/rules/forms)
 * Expand the fieldset labeled "Form elements".
 * Select the form whose elements you want to rebuild from the select list.
 * Click the "Rebuild" button.
 * Finally, navigate to the form whose elements need to be rebuilt. When the
   form is displayed for the first time, Rules forms will evaluate it and
   display a message notifying the user that its internal memory has been
   updated.


 Deactivate a form
 -----------------

 To deactivate form events for a form:

 * Navigate to the "Form events" page in the Rules administration menu
   (admin/config/workflow/rules/forms)
 * Expand the fieldset labeled "Active forms".
 * Select the forms you would like to disable from the checkboxes.
 * Click the button labeled "Deactivate events".
 * Note: deactivating form events will break existing rules that implement
   events provided by those forms.

File

README.txt
View source
  1. -------------------------------------------------------------------------
  2. |||||||||||||||||||||||||||||| RULES FORMS ||||||||||||||||||||||||||||||
  3. -------------------------------------------------------------------------
  4. maintained by Jordan Halterman
  5. http://drupal.org/project/rules_forms
  6. Thanks to klausi and fago for original development and maintainance of
  7. the earlier version of Rules Forms, which was included with Rules 1.
  8. Installation
  9. ------------
  10. This module requires Rules 2 (http://drupal.org/project/rules).
  11. Navigate to administer >> modules and enable the Rules Forms module.
  12. Getting started
  13. ---------------
  14. This is a short usage guide to build Rules on you forms:
  15. * Go to the "Form events" page in the Rules administration menu
  16. (admin/config/workflow/rules/forms).
  17. * Select the checkbox "Enable event activation messages on forms" and hit the
  18. "Save settings" button.
  19. * Go to the form on your site that you would like to customize with Rules, e.g.
  20. go to 'node/add/article' to enable events on the "Create Article" form.
  21. * On the top of the page you see a drupal message with a link to activate
  22. events for the form, click it.
  23. * Enter a human-readable label for identifying the form.
  24. * In some cases you may want to enable events for individual buttons on the
  25. form. To do so, check the checkbox labeled "Enable button level
  26. validate/submit events".
  27. * Confirm the activation by clicking the "Activate" button.
  28. * Go to the "Triggered rules" admin page (admin/config/workflow/rules) and
  29. click the "Add a new rule" link.
  30. * Fill out the label, choose a form event by selecting one in the "Rules Forms"
  31. group and confirm with "Save changes".
  32. * Now you can add conditions and actions to react on the form event.
  33. Activating button level validate and submit events
  34. --------------------------------------------------
  35. In some cases, form level validate and submit events may not appropriately
  36. trigger your rules because forms may implement button level validate or submit
  37. handlers or you may just want to target a specific form button for validate
  38. or submit events. To activate button level validate and submit events:
  39. * When activating events for a form, select the option labeled "Enable button
  40. level validate/submit events".
  41. * When creating new rules, you will find events for individual form buttons.
  42. * Note: In Rules 2.x you can create rules that react on multiple events. Rules
  43. forms rules can be invoked on form and button level validate/submit events.
  44. Creating form element conditions and actions
  45. --------------------------------------------
  46. The Rules forms module allows you to manipulate single form elements, where you
  47. need the ID of the element. This guide shows you you how to find them.
  48. * Create a new reaction rule using the Rules interface.
  49. * Select the desired event for the target form.
  50. * On the following screen, you will be displayed a select list of form
  51. elements. Select the target form element from the select list and click
  52. "Continue".
  53. * Note: Form elements are categorized by type to make them more easily
  54. identifiable.
  55. * In the event that the form element select list is not populated, try
  56. rebuilding form element data as described below.
  57. #1429622: *The Rules data selector cannot currently be used to select form
  58. elements*
  59. Using the form element inspection tool
  60. --------------------------------------
  61. Rules forms support provides a tool for inspecting form elements on active
  62. forms. This tool can be used to determine the current attributes of form
  63. elements and to inspect elements following the execution of rules.
  64. * Navigate to the "Form events" page in the Rules administration menu
  65. (admin/config/workflow/rules/forms)
  66. * Select the checkbox labeled "Enable form element inspection tool".
  67. * Click the button label "Save settings".
  68. * To use the inspection tool, navigate to a form whose events are activated.
  69. * Mouse over the question mark (?) near any form element to display a list of
  70. that element's current attributes and their values.
  71. Rebuilding form element data
  72. ----------------------------
  73. In the event that form elements are not being displayed within the element
  74. select list in the rules interface, you can rebuild Rules forms' internal
  75. storage of form element data.
  76. * Navigate to the "Form events" page in the Rules administration menu
  77. (admin/config/workflow/rules/forms)
  78. * Expand the fieldset labeled "Form elements".
  79. * Select the form whose elements you want to rebuild from the select list.
  80. * Click the "Rebuild" button.
  81. * Finally, navigate to the form whose elements need to be rebuilt. When the
  82. form is displayed for the first time, Rules forms will evaluate it and
  83. display a message notifying the user that its internal memory has been
  84. updated.
  85. Deactivate a form
  86. -----------------
  87. To deactivate form events for a form:
  88. * Navigate to the "Form events" page in the Rules administration menu
  89. (admin/config/workflow/rules/forms)
  90. * Expand the fieldset labeled "Active forms".
  91. * Select the forms you would like to disable from the checkboxes.
  92. * Click the button labeled "Deactivate events".
  93. * Note: deactivating form events will break existing rules that implement
  94. events provided by those forms.