Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
0answers
14 views

Node type syntax in Rules

I would like to send a message in D8 after a node sends as well as a message on the website. The node type is: nascholingen So I have: Events: After saving new inhoud (rules_entity_insert:node) ...
0
votes
1answer
15 views

What configures Drupal to send emails on the create or update of an unpublished content?

My Drupal installation attempts to send emails to a number of users whenever I create or update content but do not publish it. But because sending email is not configured errors are generated. I don'...
0
votes
0answers
16 views

Send email using emails from webform values

I am using webform and webform workflow; I want to be able to send out emails to the emails addresses the user inputs in the form once the status of the webform is changed. I am trying to do it with ...
0
votes
1answer
30 views

Event is not responding properly

I created 2 rules with the same action, which sends Drupal logs to the site. One is Content is created with the After saving new content (rules_entity_insert:node) event; the other one is Content is ...
0
votes
0answers
21 views

Is there any way to auto generate an entity reference (behind the scenes) using only the entity ID?

I'm looking for some help with my workflow on my Drupal 7 website... Currently: 2 user types ( user type 1: u1, user type 2: u2 ) u1 creates content u2 creates a product referencing u1's content u1 ...
0
votes
1answer
21 views

Rules to remove user from role on node publish

I have tried the following: Event: updating an existing content condition: NOT node-unchanged published remove user role (I'm stuck here) The last item is my problem. There is no user reference in ...
1
vote
2answers
52 views

How to build node title from field values on node save?

I have a content type 'supertest' with fields 'Category' and 'Section' (both are taxonomy terms reference, dropdowns). And every user has a 'Display name' custom field. And I need to update title of ...
1
vote
1answer
107 views

How do I Send a single mail with Rules and VBO?

I have a view of nodes that I edit with VBO. I filter this nodes by author. When I edit this nodes I send a mail to author with a rule but I have a problem when I edit more than one nodes with VBO. In ...
0
votes
1answer
14 views

RULES : How to redirect user to a page after login unless they're using the one-time-login-url?

I created a rule to redirect users to the front page after they login. It works fine The problem is when a user uses the link received on his email to choose a new password, or after clicking on ...
1
vote
1answer
21 views

Fetch Customer Profile from Line Items

In a webshop I’ve build I want to send individual e-mails to owners of a prodruct in the shop after a product is sold. To do this I got this as a solution: Send mail to product owner with Rules But ...
0
votes
0answers
11 views

Rules “Schedule component evaluation” not apply actions of component

I have the a Drupal site with enabled modules: Rules, Rules Scheduler Privatemsg & all submodules Date & all submodules Flag I created a content type "Event" with a date field (popup) and ...
0
votes
0answers
20 views

How do I add a new node as reference?

I want to know if the Rules module is able to add a new node as new instance to the entity referenced field of another node. Imagine we have two content types, Person and Book, where each person has ...
1
vote
1answer
23 views

Send mail to product owner with Rules

I have a Drupal 7 site running including Commerce. I'm asked to make the webshop work in a way that the mail send after completing payment is send to the product owner(s). So when creating a product ...
1
vote
1answer
18 views

Trigger on selected field change

So I have a Drupal 7 Workflow rule where an email is sent out when a select field on a comment is set to "Approved'. This works fine with the exception being if I then add an additional comment to ...
0
votes
2answers
20 views

Rule to deselect checkbox item?

I have a mailchimp subscription content type that add a user to the email list in mailchimp. It works great and adds them to the list. However, I want deselect that checkbox when they fill out a ...
0
votes
0answers
36 views

Rules not firing at user creation for non default language

I created a rule that delete a user when a profile field contains a particular, troll specific pattern. It works perfectly when registering with the default language (fr) as current. When registering ...
2
votes
1answer
31 views

How to stop users from flagging other users if they have a custom taxonomy term?

I'm working on a project where users vote other users using the Flag module. Each user has a department term reference field. I would like to stop a user from flagging another user if they have the ...
1
vote
1answer
35 views

How to redirect user to an url when node is flagged?

My problem is related to the Drupal 8 versions of these two modules: rules and flag. What I want to achieve Some node types on my site are offering a global flag as a link (for e.g. "report error" ...
0
votes
1answer
32 views

Fire a rule only when a specific webform has been submitted

I am using the latest version of both drupal 8 and webform 8 Here is my use case: I have on my drupal 8 website 3 different webforms (webform A, Webform B and Webform C) Now, I want to fire a rule ...
0
votes
0answers
12 views

How do I permanently remove a custom rule?

I wanted to restrict the maximal size of the cart in Ubercart. I found a thread on drupal.org with a user offering a solution to do such by creating a Rule Condition "Evaluate shopping cart quantity". ...
0
votes
0answers
4 views

How to set a rule to create taxonomy terms from list of words upon node save?

Working in Drupal 7, I have a content type "WordBank" that offers the user to fill out a list of words, a text field with maximum 10 values. The maximum length per list item is set to 25 characters. I ...
0
votes
0answers
11 views

Custom created tokens are not replacing values when used in Rules->Action as email receiver

I'm trying to assign values from my custom created token called [custom:email] as the email receiver in Rules under Actions->Elements->Send Mail Following is described how I'm trying to achieve ...
0
votes
0answers
21 views

Use Rules to send email to Anonymous user only

This seems like it should be very straightforward, but I'm having a tough time getting this working. When an anonymous user posts a comment, I want to send an email to the site administrator. I don'...
0
votes
0answers
16 views

Inconsistent style for emails sent by rule?

I have a rule configured to fire off an email when the nightly cron tasks runs. So, every 4 a.m. an email gets sent out. If I trigger the rule by running cron manually, the resulting email has the ...
1
vote
1answer
27 views

Rules module doesn't send emails to user roles once conditions are met

I'm working in drupal 7 and I've configured the rules module to send emails you specific user roles when content is created. For some reason I'm getting inconsistent results, sometimes not receiving ...
1
vote
2answers
29 views

Rules: use a View's result as a condition?

How can I use the results of a view as a condition in a rule? I have rule that fires off a daily digest email with contents from a view (using Views Rules). The view simply returns nodes that have a ...
0
votes
2answers
28 views

Updating node title inside Rules Action

I am creating a Rules Action that will update the node title after it is created. Here is my code, but when I try to create new content using Postman, it keeps loading. I dont get response in Drupal ...
1
vote
1answer
41 views

Add/remove roles after submitting a certain webform

I know that we can achieve this via Rules but unfortunately, there are some known issues that prevent Rules in Drupal 8 to add a role properly. So I was wondering if it would be possible to ...
2
votes
1answer
29 views

Rules module user/register

I keep getting spammed/attacked looking at reports/db. Anonymous users keep trying to go to /user/register (but I disabled registering). So being annoyed by anons still trying to going to that url, I ...
0
votes
1answer
36 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
9 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
13 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:...
0
votes
0answers
190 views

Unpublish after replicate with rule

I'd like to automatically unpublish a node after replication (module replicate). It is not a page but a content of an own entity type. I can create a rule with event "after replication". But how to ...
1
vote
2answers
15 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
21 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
0answers
22 views

PHP condition in Rules to check if First Name, last Name of User is duplicate

I have an issue where I need to check if users registering to my drupal site are duplicate users. They may user a different email address from a third-party but are using the same first and last name ...
0
votes
1answer
22 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
23 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
0answers
9 views

Using webhook data in drupal rules

I am using a Shopify Webhook to trigger a rule that will send an email. I am trying to figure out, though, how to get the data from that webhook. The data is being sent back to the site, and it is ...
0
votes
0answers
24 views

Cannot delete/remove a workflow ruleset

I am trying to delete an ruleset in workflow drupal 7. It only gives me the option to revert or disable. Was this because it was possibly imported in as a feature or is this a default ruleset? How do ...
0
votes
0answers
31 views

Drupal 8 Role subscription using mollie as payment gateway

Hello fellow drupal devs, First of all i do not have much experience with commerce, and especially not for D8. I have been searching the internet for days now and couldn't find anything useful for ...
0
votes
0answers
21 views

Fetch Node By Texonomy Term

When a user created then by selecting particular texonomy term the user should be add to the courses of that particular texonomy term belongs to like Texnomy Term A has 3 courses abc, xyz, uvz if ...
0
votes
1answer
36 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
42 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
20 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
47 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
40 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
0answers
17 views

How to check in rules: if the current viewed product was paid by the current user

Please, can someone help or explain how to create the condition in rules if the current viewed product was paid by the current user The products is displayed through the Node Display. The event ...
0
votes
0answers
17 views

Comparing 2 number fields in 2 different content types to see if they match

I have two content types. One tracks production of items and one tracks hours of individuals. In the production of items there is a total hours field (field_prod_track_hours). In individual hours ...
0
votes
1answer
19 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 ...