Questions tagged [rules]

Use it for questions about the engine which allows site administrators to automate actions: the Rules module.

Filter by
Sorted by
Tagged with
1
vote
1answer
39 views

How to add files using rules module?

This question follows Override webform module submit Based on this answer, I used the rules module to create a node after webform submissions. My webform contains an <input type="file" /> for ...
0
votes
2answers
92 views

Rules data selection tokens

I have a rules data selection token that looks like this [order:products:0:node:author:uid] In data selection mode that works perfectly, and adds the exact data right where I need it. But when I am ...
0
votes
1answer
279 views

How to save webform submissions data in fields using rules module

I used the answer in my last question Override webform module submit to create node after webform submissions. My webform contains many components like phone, address, responsible and others. How ...
0
votes
1answer
288 views

Drupal 8: Build “visitor history” using Flag/Rules

I need to build a history for visitors so they can see which pages they've visited (ideally filtered by type). To do this, it seems that the correct combo is to use Flag module and then Rules. I'd ...
-2
votes
3answers
359 views

How to create a rule to email all users with a profile field X with same value as the current-user?

I'm using Drupal 7.57 and I have 2 roles in my website, role X and role Y. I want to compare a field (field_code_postal) of the X member profile of the current-user, with the fields (...
1
vote
0answers
64 views

Call REST GET request inside Rules Action

I created a custom Rules Action that calls a REST API. I can be able to display $entityId = $entity->id(); but when I try to use it concatenated in my $uri I am getting no result in $data. $uri = '...
0
votes
0answers
76 views

How to send email to a specific organic groups role using rules?

I'm trying to set up a Rule to send an email to organic group members with a specific og role, in this case 'captain', when new group content 'Ticket' is created. I've been able to set it up for all ...
1
vote
1answer
70 views

Use Rules to notify original author when their node is published [closed]

In short, I'm simply looking to notify the original author when their node goes from a non-published state to a published state. I have Workbench Moderation enabled if it makes a difference. I've ...
1
vote
1answer
331 views

Use Rules to email all members of a role that is specified within a taxonomy field attached to a node

I tried to concisely explain what I am looking to accomplish in the subject, but will go into more details here. I think I'm really close but my Google-fu is failing me. My question: How can I use ...
1
vote
2answers
1k views

How to use an user profile custom field using Rules?

Working with Drupal 8.4.5 and Rules 8.x-3.0-alpha3 and Typed Data 8.x-1.0-alpha1 With Drupal 7 Rules, we may use an user custom field for data comparison (address or vocabulary for example). And it ...
2
votes
1answer
31 views

How to place content/user field value inside of a rules action?

I'm trying to grab the contents of a field in my node of custom Content Type 'Messages'. The field is called 'targetuser'. I successfully grab the content of this field, and place it inside a field on ...
1
vote
1answer
91 views

How to check in Rules if a text field has changed?

Not sure why this condition is ALWAYS evaluating to true. Trying to check to see if the value in a long text field has been changed. The first field in the condition node-unchanged:field-security-...
1
vote
1answer
306 views

How to check in a Rules Condition if an Ubercart product is out of order?

There isn't a good support for "out of order" in Ubercart for Drupal. I'm trying to fix that with the Rules module. I'm trying to add a rule that disables the product after the stock is updated, ...
0
votes
1answer
25 views

How do I postpone an already postponed deletion

I made a site in which users can publish content and also postpone the deletion time. Now I want the users to be able to postpone a deletion that have been already been postponed. So I want to ...
1
vote
1answer
226 views

How to send an e-mail to a user selected in a webform via a user reference field?

I have a webform, that the HR use. I have a form component of the users, that is a user reference field. I would like to use Webform Rules to send an e-mail notification to the selected user. If I ...
0
votes
1answer
74 views

Get node fields in Rules action programatically

How to get node field values and include it the Rules Action? If I have a custom content type that has taxonomy terms, and I want to display these terms in Action. Example output is simply logging the ...
1
vote
1answer
162 views

Rules with condition on taxonomy

Im doing a simple Rules that when a content is created of type X, and has taxonomy term of T1, simple action to display a message in the page. Events: After saving new content (rules_entity_insert:...
1
vote
1answer
25 views

How to avoid Rules adding blanks to eMail Id subscribed via Simplenews?

The following rule works fine, only it adds always a blank before and after the emailaddress in the database table . And that gives an error when sending the newsletter. { "...
1
vote
1answer
27 views

Allow a user to manage his/her own users and be able to assign roles

I need to give access to a specific user with a specific role to be able to give the user role but not the administrator My case is that the website I'm building needs different kinds of admins and ...
1
vote
2answers
278 views

How to use Rules to add custom shipping cost per product?

I use Drupal Commerce on Drupal 7 site, using product displays and products. Each product has a shipping cost field. At checkout, the shipping costs of all products in the order need to be ...
1
vote
2answers
1k views

How do I send an email to all users with a particular role? [closed]

This was quite straightforward in Drupal 7 as I recall but, with Drupal 8 there's a lot of info I don't understand as a site builder that I am being asked to provide when creating a new rule. I'd ...
0
votes
1answer
285 views

Auto fill content field with random values

I have field_x with values "A" or "B". They must be assigned randomly by the system between A or B at every node added ( must not be changed on "node edit" by the node author). The total numbers of ...
0
votes
1answer
69 views

How to send an email once a new member is invited using the Group module?

I am using the Group module on a Drupal 7 project. I would like the system to send an email notification once a new member is invited. I'm assuming I could use the Rules module to perform this task, ...
1
vote
2answers
376 views

Notify node author of new comments

Has anyone been able to figure out how to notify the node author when new comments are posted on their content? I understand Rules for Drupal 8 is still in its infancy. When I used various tokes ...
0
votes
1answer
41 views

Is it possible to use a condition set component as a parameter for another component?

Some of my Rules (say they are part of a collection S) execute in their actions Rules components of the following form: If conditions A and conditions B, then do actions. Now, conditions A and actions ...
1
vote
1answer
26 views

D7: Resetting ALL user fields (Boolean) at once

In a nutshell, I'm trying to stop my users from getting e-mailed more than once per day. I have some rules set up that will e-mail users when content particular to them is updated. I have added a ...
1
vote
2answers
104 views

Looping through taxonomy terms and adding them to term reference field with Rules

I have a content type called Items. Within the items I have 3 unlimited term reference fields. Location (field_location_pi) Phase (field_phases_pi) Structure (field_structure_type_pi) I am ...
0
votes
1answer
1k views

How to perform some Rules Actions WHILE some condition is TRUE?

Using Rules, how can you perform a set of Rules Actions WHILE (some condition = TRUE)? About that condition: I'm not talking here about a Rules Condition ... Instead I mean some sort of boolean ...
1
vote
2answers
337 views

Using Workbench Moderation state changes in Drupal 8 as events in Rules

I would like to use Rules to send out emails to specific roles whenever a Moderation State change event occurs on a Node. So if a node is saved and and it goes from Draft -> Needs Review moderation ...
1
vote
2answers
26 views

How can I trigger a rule when there's no more scheduled content?

I have a Drupal 7 blog where I write content in advance and publish it using the Scheduler module. I'd like to be able to write a rule to send me an email when the site has published the last ...
0
votes
1answer
140 views

How duplicate order automatically with commerce 2

How do I automatically duplicate an order? I use Drupal 8 and Drupal Commerce 2. I need to duplicate some orders, each week, automatically. Orders have a Boolean field (recurrent_order). When the ...
0
votes
0answers
271 views

Webform Rule to Change Component Value

Does anyone know a way to change the value of a webform component after the submission is updated using rules? For example: Rule Triggers on Event: Webform Submission is Updated Action: Change ...
1
vote
2answers
42 views

Different roles create different amounts of a specific content type

I'm building a job directory where users are allowed to register (selecting a membership type) and create Companies and Jobs. A membership can be Simple, Business or Premium. The membership type is ...
1
vote
0answers
235 views

Rule to Change Webform Submission to Draft [closed]

I'm looking for a way with Rules (or otherwise I just figured that Rules would be the easiest without writing custom modules), to change the submission status of a webform from Submitted, to Draft. ...
0
votes
1answer
119 views

How to use Ubercart product SKU as a condition in Rules?

I need to display a message on the cart page if one or more specific SKUs are added to the cart. For example, if a product with SKU # ABC123 is added to the cart, the Rule should be triggered and ...
1
vote
0answers
31 views

How to programmatically check whether field on form has changed in hook_form_alter

In rules you have the ability to check whether a field in a form has been changed by negating node-unchanged:field-xyz = 123. I want to check whether a field has changed programmatically with the $...
1
vote
3answers
314 views

How to implement a button with different redirections?

I'm setting up a job directory using Drupal 8, together with a team. It is possible to see it here. As you can see below, in a screenshot of the site, there's a button called "Add new job": In a ...
1
vote
1answer
55 views

How to create a group page when creating a new group?

When I create a new group (using the Organic groups module), I want to use the Rules module to create a new group referenced page. I can create a new page using the Create new entity action, but I ...
3
votes
1answer
452 views

Data selectors for custom fields

I have two node types: Item and Order. I have an entity reference (field_items) set up on the Order content type which references Item (1 Order to N Items). The Item has a field (...
2
votes
2answers
48 views

How to grep Rules to search for a deprecated function?

I'm removing an obsolete custom module, but I want to make sure it isn't referenced in any rules. Is there a way for me to search / grep for a function name within all the rules on my site?
0
votes
1answer
47 views

How to identify which Rule is triggered?

I have a collection of email notifications created with Drupal Rules module and a separate custom database table with the ID's of the rules and emails to exclude from individual notifications. I need ...
-1
votes
1answer
32 views

How to alter a Rules Core Condition?

I need to use the core condition 'Entity has field' but without the selection list restriction. Easiest way to implement this is to wipe out the two restrictions manually. But how do I do this in a ...
0
votes
1answer
269 views

Unpublish node based on date field with Rules

I'm trying to unpublish a node based on a date field with Rules. I've followed this tutorial but somehow it doesn't seem to work. Here's my Component: { "rules_unpublish_termin" : { "LABEL" : "...
1
vote
1answer
36 views

How to display a Rules Link only if access to display the linked content was granted?

I'm using the Drupal Commerce 7.x, Rules Link, and Content Access modules. In my site Classified ads can be created, and then people can use credits (via User points) to pay for unlocking "contact ...
1
vote
2answers
46 views

How to create a rule which after several updates in 5 minutes of a node sends 1 message?

When a node is being updated I have a trigger for this in the rules engine. I want a notification of this in the email. The node is however updated several times in 5 minutes. I only need 1 ...
0
votes
1answer
17 views

Is it possible to create a rule on the event “after saving an existing block”?

The reason of such a rule would be that there is just one block a certain user can edit. And when he does so, after saving he is redirected to the blocks management page, which he has not the ...
3
votes
1answer
637 views

How to include IP address Token with Rules?

I would like to track IP address and User Agent when Rules sends out a email. How can I include the [current-user:ip-address] token and %server[HTTP_USER_AGENT] in „Send email“ rule? Unfortunately ...
1
vote
1answer
211 views

How to access node properties of another node using the Rules Link module?

I wonder how to access node properties via another node with Rules. I already store the link of my other node in a field (of the original node), but I don't know if we can do that. I'm using the ...
-1
votes
1answer
29 views

Access to the url of a node from another one

I'm a bit stuck there ! here what i do : I have two content types : Ad Lock, Ad complete. When a user create a node Ad Lock, i use rules to clone it and then convert the original in Ad complete. So ...
2
votes
1answer
85 views

Creating a Rule for email recipients

I am working on a site that has a registration form (created with Webform) for 4 different conferences. The registration goes to everyone on the list (there are 8 people on the email list). But we ...

1 2 3
4
5
46