Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rules]

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

0
votes
1answer
96 views

Completing the checkout process event isn't firing

I have a Drupal Commerce 7 installation which isn't firing the Completing the checkout process event. Steps I've tried: I've rebuilt Rule's cache I've rechecked the integrity of the rules I've set "...
0
votes
1answer
12 views

Add a DB record for taxonomy with Rules

I actually import terms from Feeds Xpath and copy them to a Content taxonomy field. But this term isn't recorded in the term_node table as expected by checking the checkbox. So can I use Rules to "...
1
vote
0answers
20 views

Rules replacement pattern for End Date

I have a rule set up to email the contents of an entity form. I am using replacement patterns to print out the submitted data. However, I cannot get the end date to print out. I have [entityform:...
1
vote
2answers
17 views

Why can't I save a Send HTML Email action in a Rules Component?

I have a rule component set up that currently sends an HTML email. I need to change the body of the email to include a new field, but when I do and press Save, it doesn't return to the Rule page, it ...
0
votes
1answer
36 views

Drupal Mollie Payment no rules trigger

We are working on a drupal ecommerce subscription service. Modules: Commerce, Commerce Mollie, Payment etc.. Everything works 99%. After finishing the payment the user needs to get the right role + ...
0
votes
1answer
39 views

Redirect links to nodes of past events to the up-to-date version

On a event-centered site we have a lot of recurring events, but there's no pattern like every first monday etc. So the editors just clone the event with node-clone and with pathauto we generate a date-...
0
votes
1answer
42 views

Cannot create user, email: invalid!! while trying to create a user using rules module

Here is my rule export. "Cannot create user, email: invalid!!" error occurs soon after submitting the webform. Drupal user has to be created soon after Civicrm contact is created. After submitting ...
0
votes
1answer
70 views

Reaction rule throws exception when previewing node

I have very simple reaction rule condition 'Node is Type' in Drupal 8 (8.5.3) Rules module (8.x-3.0-alpha3): Data selector: @node.node_route_context:node (Note: the mentioned issue occurs also for ...
0
votes
1answer
66 views

Create a Rule that assigns a specific role to a user after they have completed a form

Ok, I have a customer that is wanting to have an applicant complete a specific webform and then have their user account be assigned to a specific role automatically. My thought was to go the ...
1
vote
1answer
27 views

Rule fetches only single taxonomy term from multiselect values

I have created a Rule which is supposed to fetch all the selected term from a taxonomy term field (a field that holds a list of taxonomy terms). But when the rule is executed, it fetches only one ...
0
votes
1answer
103 views

How to configure the CONTEXTUAL FILTER in a View for Rules?

I want to make a component that receives a user as parameter, and will then do something with some of that user’s content. That something is: delete nodes of contenttype FICHE that have a due date ...
2
votes
1answer
81 views

Commerce message notify sending duplicate emails

I have created a custom commerce order status called 'Sent'. When an existing order is updated from 'Invoiced' to 'Sent' I have a custom message type ('Order sent') and, using Rules, a custom rule ...
0
votes
1answer
21 views

User added to a specific group should be blocked

I'm trying to accomplish the task -" If the User is added to a specific CiviCRM group manually by admin/'users with permissions to add to group', The added user should be blocked.I'm using Rules ...
1
vote
2answers
34 views

What is the proper condition to check for a select list value of none?

I have a rule in drupal that populates an entity reference in a parent node with a child node. Then I created a new rule that is applied "before content is saved" that will remove the child node ...
1
vote
0answers
27 views

RulesAction to send notification for specific users after node has been created

The Background I'm using the module 'Permissions by Term' (https://www.drupal.org/project/permissions_by_term) to make some nodes only visible to users which are allowed to see the assigned term. ...
-1
votes
1answer
34 views

How can I check and set user status in Rules Action?

I am using a REST API that creates a user without password. And doing so, the user is successfully created but the status is set to blocked - meaning it is not actually logged in. So im planning to ...
2
votes
1answer
54 views

How to get subsequent fields to populate after creating a node using webform rules?

I've been going crazy trying to figure this out. I think I am close, but seem to be missing something with the rule actions. Any help would be most appreciated. Background: I’m trying to create ...
1
vote
1answer
52 views

How to fire a Rule when an image is removed from Image field with unlimited values?

Working with Drupal 7.58 and File Entity 2.19 and Rules 2.10 First I needed to fire a rule when saving a new file and I found a solution (here). Now I would like to fire a rule when an user removes ...
1
vote
1answer
56 views

How do I remove a node from the front page after a certain period of time?

Can I use the Rules module to remove a node from the front page after a period of time determined by the administrator user when creating the node?
0
votes
0answers
19 views

User expirity resets after rule fires

I have a rule, that sets user expiration date from a date field (this is on the same user account, I need this for another rule). However, after the rule fires the user expiration date is beeing reset ...
1
vote
1answer
52 views

Can I use Rules Transform to remove text from a returned value?

I notice that Drupal Rules Data Transforms has the "trim text" action option. Is it possible to trim the returned value by a specific number of characters, or remove a specific word from the returned ...
1
vote
1answer
58 views

Custom Rules Actions to set content to unpublished

Is there a way to write a custom Rules Action with this conditions. Default: Content Type X is set to create unpublished content. RULES Event: After saving new content Condition: when a ...
-2
votes
1answer
718 views

How to run custom PHP in a reaction rule in D8?

Have recently installed & then patched the Rules module to get it working in D8. I need to run an action which executes some PHP e.g when an order in Commerce is completed. In D7 this is done by ...
1
vote
1answer
72 views

How to create a rule to flag users when they're approved as a Trusted Contact?

I need some help with Drupal Commons (7.x-3.46), Trusted Contacts (one of its modules), and Rules. I need to create a rule so that whenever a user is approved as a trusted contact, the user is also ...
1
vote
1answer
37 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
73 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
203 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
190 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
278 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
57 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
70 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
45 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
324 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
622 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
56 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
194 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
24 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
130 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
67 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
76 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
23 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
26 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
164 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
1answer
707 views

How do I use Rules to send an email to all users with a particular role?

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
196 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
42 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
1answer
287 views

Use Rules to 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
36 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
22 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 ...