This is a combined enquiry / feature request, investigating whether Rules can do any of the following, and it not, to request them as a feature.

  1. Ajax rules (can't think of a better name). ie. Rules that are triggered by the cursor moving into and out from a field. This would allow all kinds of conditional and computational field changes while editing a content type (or taxonomy, etc). It would effectively replace modules such as Computed Field, Hierarchical Select, Field validation etc

     

  2. Rules triggered on the following events:
    • Node edit form: (a) Displaying for the first time (so that fields can be given default values) (b) Displaying after a preview (c) Saving for the first time (d) On clicking preview
    • (a) On error (b) On specific server error number
    • On Admin page access
    • (a) On File upload (b) On file type upload
    • On content containing string/value
  3. Computation field rules (without resorting to programming). eg. basic maths, so I could have a Quantity and Cost field, and on Node preview / Save, calculate a Subtotal field (QTY * Cost). Or I could have an autoincrement field (like the Serial Field). It seems silly having so many specialised and separate modules, when some basic rules would replace them all.

     

  4. Likewise, conditional and hierarchical field rules

     

  5. Spreadsheet-like "programming" rules. So instead of using PHP, we use tokens to refer to field names, and fields are modified like you would a spreadsheet cell. eg. [subtotal] = [quantity] * [cost]

Comments

iantresman’s picture

Title: Feature requests » Rules: Feature requests
iantresman’s picture

Title: Rules: Feature requests » D8 Rules: Feature requests
Issue summary: View changes
TR’s picture

Status: Active » Closed (won't fix)

I'm closing this issue because it is way too general to address and because many of the feature requests are already being handled in other issues. I encourage you to SEARCH THE ISSUE QUEUE first, before posting a feature request, and restrict your feature requests to 1 feature per issue. If you want a feature that is already being discussed, then add your comments (or add your patches!) to the already open issue where those features are being discussed.

Here is a partial list of other issues that address the above feature requests. Frankly it's too much effort for me to try to figure out what you mean by every single bullet point then try to search and cite an existing issue for each. But off the top of my head I can recognize a number of your feature requests as existing issues so I will mention them here:

#2616306: D8: Rules triggered by cursor moving between fields?
#2636482: Add event for 404 not found
#1698296: [Meta] Merge Conditional Rules

etc.