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

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

1
vote
1answer
28 views

Why do both Text- and Data comparison seem to not work in my Rules conditions?

I’m using Drupal 7.56, the Rules module 7.x-2.11, and CiviCRM 4.6.31. I've been using the Text comparison and Data comparison conditions. Using the Text comparison condition, the condition is always ...
0
votes
1answer
12 views

use taxonomy term for reservations how to prevent overlapping

I have a drupal site where reservations are available. We use fullcalendar module to visualize the room reservations. For a reservation the user needs to add a new content. The content uses taxonomy ...
0
votes
0answers
17 views

Copy value from user field to custom field in commerce customer profile

I try using this rule to copy a value from a field in the user account and paste it into a field in a customer profile in drupal commerce: { "rules_kopiera_fran_anvandarkonto" : { "LABEL" : "...
0
votes
0answers
33 views

How to copy the user account 'picture' , using Rules

Drupal 7, File Field Rules module. How can I select the 'picture' from a user's account, as a source to copy from? I am trying to copy it to another image field in the same user's image gallery. ...
0
votes
1answer
33 views

phone call Button

I am a newbies in Drupal, currently I use Drupal 7. I want to add one button into content type, to make the phone call when user click on this button. I use module Button Field + Rule, but I don't ...
0
votes
1answer
81 views

Why is Rules Action “Create Linked Drupal User Account” not working?

I’m using Drupal 7.56 and CiviCRM 4.6.31. I’ve been using Rules in Drupal to create a Drupal User Account linked to the CiviCRM contact created. But it's failing. I'm getting the following error: ...
0
votes
1answer
28 views

Creating products with Rules and calculating price in Drupal Commerce

I am creating products on the fly with Rules, using Drupal Commerce. After user clicks on checkbox near product (additional service to product), I need to "add the service" to cart. Service is always ...
0
votes
0answers
27 views

Rules, Flags, Follower and New Content Notification

I am trying to setup a couple of rules. So far I have messed with rules some but since I am new, haven't had any success. This is what I am trying to achieve. Have created a user flag called FOLLOW. ...
0
votes
1answer
39 views

Follow content updates using flag and rules

I created a flag called flag-follow for nodes and a rule when a user reads a node is has interest in and wants to follow the activity of this specific content. He clicks on a "Follow" button. So far, ...
0
votes
0answers
24 views

Drupal Commerce Subscription rules

I am working on a Drupal 8.5 with Commerce 2, where I have already installed the subscription and Recurring module for Commerce. I have managed to set up the products and all the required settings ...
0
votes
0answers
13 views

Read opengraph property and use as field title

I have a simple site that generates an article content in the page. This content is a link preview of the article URL. My goal is when an article is created I want to use metatag property sitename as ...
1
vote
2answers
69 views

Encode a line break in an HTML email sent by Rules?

I have a rule that sends out an email when a node gets edited in a certain way. The rule fills the body of the email with the value of a <textarea> field from the node that was updated. The ...
0
votes
0answers
17 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
20 views

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

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
20 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
35 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
23 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
23 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
71 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
312 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
27 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
12 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
21 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
25 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
21 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
23 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
33 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
48 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
33 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
14 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
13 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
23 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
18 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
29 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 ...
2
votes
2answers
33 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
38 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
69 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
34 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
49 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
10 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
15 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
16 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
24 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
29 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
25 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
32 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 ...