Button Field
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Adds a button field type for use with any fieldable entity type and Rules. Provides two different widgets: HTML Button and Image Button. Adds a new button click event, clicked button comparison, and reload page action for use with rules. When the button is clicked, an AJAX call is used to run the event. Using rules you could display a message to the user, alter some data on the entity (or another entity) and reload the current (or any other) page.
Drupal 7 port
Upgrading from Drupal 6
This module provides no update path of its own from Drupal 6 to Drupal 7. To migrate your existing fields, take a look at Migrating D6 Content Construction Kit (CCK) to D7 Fields. To update your rules, read the "Upgrade from Rules 6.x-1.x to Rules 7.x-2.x" section of the README included in the Rules module. You must have Button Field alpha 2 or later installed in order to update your rules. Any button fields previously added to views will need to be re-attached to those views.
Important note
Due to #1452894: Elements with #has_garbage_value and #value are always set as a triggering element you can not use image buttons on edit forms when there are any other buttons. Non-editable displays are unaffected.
Differences from Drupal 6 version
- Works with any fieldable entity
- Entity parameter provided with the rules event will contain any form values from the edit form
- Makes much better use of Drupal's Forms API (FAPI)
- Utilizes Drupal's Ajax Framework
