The Rules module is a module that allows site administrators to define actions that are conditionally executed, either programmatically or in response to predetermined events.

learn more… | top users | synonyms

0
votes
0answers
4 views

How to create entities on another site using the Web Services Client module

I have installed the Web Services Client module, together with the Drupal Services module and Rules, in order to create, edit and delete entities on a remote Drupal site. The remote Drupal site has a ...
1
vote
1answer
10 views

How to integrate messaging into a custom module?

I'm working on a custom module to handle time off requests for an intranet site and I'd like to be able to have the module fire off email notifications to a configurable list of users -- specifically, ...
0
votes
0answers
16 views

Rule for sending email when order exceeds a defined weight

I set up some shipping tariffs (with module shipping weight tariff). But now i want to define a rule that sends an email to the shopowner in case the order total weight is over a certain weight. How ...
0
votes
1answer
24 views

Pass contrib module tokens to custom event in rules

I am creating a custom rules event using hook_rules_event_info. This custom event is extending the features of the Stripe Subscription contrib module. The custom rules event is working fine so far. ...
1
vote
0answers
19 views

How can I pass values to Rules?

I would like to pass values to Rules (eg an array of words) and then do some Rules magic with them (eg create new nodes if they dont exist already). I found one solution here How to reference ...
0
votes
0answers
16 views

How to set Fivestar value using rule?

I have a form that contains different set of fields that will be connected to different review type / content type. The values of the form will be copied to that specific review type using the rules ...
0
votes
1answer
21 views

Products - Add to cart

I need some advice. My client has a website with loads of products. Now the client want the ability to add products to a cart, and instead of buying, they want the products to be mailed. How can I ...
0
votes
0answers
26 views

Commerce stock rule creation

I'm trying to create a rule that will unpublish a product display only if it's a certain type of product once stock reaches zero. I can't seem to find any good recipes to do that. I don't know ...
1
vote
1answer
33 views

How to automatically delete all product displays when a product is deleted?

To automatically delete the product displays when a product is deleted, is a feature of the module Auto Product Display, but I don't need that module. Preferably using the Rules module, I would like ...
3
votes
1answer
48 views

How can I send an email to the previous comment author when a user places a new comment?

I want to get the Email address of last comment's author. Actually, I want to send email by creating a rule when new comment posted and this email will go to the user who commented on node before ...
1
vote
1answer
23 views

How do I get the fields of form attached with a content type as token?

I do not know is it possible or not. I have a content type for creating tickets. I have a form attached to content type which contains ticket state and ticket assignee fields as drop down. Now I want ...
0
votes
0answers
10 views

How to create one universal inline entity create form with a dropdown to select the entity bundle

In my project I need the users to very quickly create entities of different bundles, all of the same entity type. The idea is to have a universal entity create form exposed in a block or panel pane, ...
0
votes
0answers
10 views

How to set a component value with VBO?

I installed Webform 7-4.12, VBO 7.33, Webform Rules 7.16. I tried 4 hours to set a value of submission of a "Select options" component with these modules(esp. the rule action component) in the ...
0
votes
1answer
29 views
+50

Rule works but produced “err_empty_response” error when I want to edit it

So I have created a rule, that works, does what it should exactly do (so the syntax and configuration is okay), but after creating it and waiting a while, the rule becomes un-editable and the edit ...
0
votes
0answers
32 views

How do I redirect anonymous users to the login?

I'm using rules module with drupal 8 in order to redirect anonymous users to the login page after registration form submission, so I created a rule with react on event "After saving new user ...
0
votes
0answers
9 views

Displaying Token Field Labels From Fetched Entity In Rules HTML Email

I am sending a MIME HTML email using rules. Much of the information contained in the email comes from a fetched custom entity (custom ECK entity). Using the available replacement patterns, I can get ...
0
votes
0answers
12 views

Grabbing and Manipulating Endpoints/Referenced Entities in Rules

Using Rules, I am creating relations from a Lab Cage Content Type that has a field that is an entity reference list, where you can select a list of Mice entities. For instance, if the user selects 3 ...
1
vote
1answer
34 views

Drupal Commerce Stock Availability or Out of Stock

I am working on Drupal Commerce website. Using Commerce Stock I am able to manage the inventory but on product details page I want to print the following. Availability: In Stock or Availability: ...
1
vote
0answers
44 views

Send email notification with Rules

I'm using Drupal 8.1 with Rules 8.x-3.0-alpha1. I want to create a rule to send an email to the author of a node when a new comment is posted to this node. Problem is I didn't get the email address ...
1
vote
1answer
16 views

How to create a rule to remove a product by sku, or remove a product to the cart

I searched, and searched in many, many articles and and I have not found a solution. What I want to do is to create a rule to delete a product by sku? Or a rule to delete products. I show you my ...
1
vote
1answer
14 views

How to create a Privatemsg thread with multiple recipients in a Rules component?

I'd like to send private messages to a selected group of users. For this purpose I use a view with VBO and a Rules component action (utilizing the "Send message" action provided by Privatemsg) - as ...
0
votes
0answers
9 views

How to merge the fields of two entities using Rules

I created a rules set that checks if a view result set of entities of the same bundle has duplicate titles. It then flags the duplicate entities. In order to make sure that no entities with duplicate ...
0
votes
0answers
16 views

Add custom image watermark based on role and content type

I am adding small watermark logo to all images using ImageCache Actions There are 10 users that are publishers of their own galleries, and i want to protect their images (i know they can not be ...
1
vote
1answer
16 views

Sending message notification based on flagged node being linked via entity reference

I'm trying to figure out how to make the following work: Sending notification based on flagged node being linked via entity reference. So i got a 'news' content type and a 'band' content type, that ...
0
votes
0answers
29 views

How to create a list of users who did not submit webform including past submissions?

When I use flag and rules, I can list only user who did not submit webform after the logic applied. How can I have the list including the past submissions. This is a followup question from How to ...
0
votes
0answers
4 views

How do you access Commerce Order properties in the action section of Rules?

I am trying to access the site:current-cart-order:mail property as the value of a "Set data value" action but it only shows up when selecting the data to change, not when selecting the value to change ...
1
vote
0answers
10 views

Send html-Mail to new simplenews subscriber

I have installed simplenews and I want to send follow-up HTML-Mails to newly newsletter subcribers after one, two and three weeks. It only works to send a mail immediately after subscribtion (via ...
0
votes
1answer
21 views

How to limit and enable Commerce shipping options based on the customer's country?

Very simple use case, using only flat rate shipping, with version 2 of Drupal Commerce Shipping and Drupal Commerce Flat Rate. I have two shipping options customers can choose between if they are in ...
1
vote
2answers
22 views

How to use Rules to fetch domain Whois Data, parse the data and save it to fields?

For a domain management website I would like to import all Whois data to entity fields. A domain is an (ECK) entity, with the fields corresponding with the Whois data. There are public Whois api's ...
1
vote
1answer
31 views

How to send an email using Rules when a node's boolean field is changed?

I managed to setup email notification via the Rules module when the content is updated. But I want to limit this only when the value changes in a specific field that is boolean "Yes", "No". Update: ...
0
votes
0answers
11 views

Fetch all fields of an entity and their data, for a simple clone Rule

I don't think this is possible out of the box in Rules, but I would like to create a Rule that clones an entity of a specific type. Using for example a Rules Link as trigger, the The bundle type of ...
2
votes
1answer
16 views

How to definitely stop inside a Rule and prevent any further actions in the rule from executing?

I have not seen that the Rules module can do this out of the box, but how can I prevent further execution of subsequent actions in a rule? For example, I have multiple components in a rule. The first ...
2
votes
2answers
21 views

How to prevent a rule to be triggered inside a rule? (Without Conditional Rules)

I'm using the Rules module and I have two rules: A: When flagged, 'Post a journal entry to the ledger' B: When unflagged, 'Remove journal entry from the ledger' Rule A includes also two Rules ...
0
votes
0answers
7 views

Content Access Rules - Content access user actions missing

I want to use the action Control Access User -> Grant access by user in Rules, but I can't find that action in the list. I think I've got all the modules activated and have cleared the rules cache. ...
0
votes
0answers
31 views

How to require a minimum amount for a role using the Rules module?

I'm using Drupal Commerce (Version 7.x-1.13) and I wish that the professional role may place orders for a minimum of € 150. On top of that, how to block the cart and display a warning message? I ...
1
vote
1answer
31 views

How to replace text about [node:url] within a Rules Action?

I'm using the Rules module and have a Rule created that, upon saving of new content, an email is sent out containing the node title, as well as the URL of the node. Pretty straightforward. That said, ...
0
votes
0answers
28 views

Sending email notifications to Webform submissions using Rules, Views and Webform

I am trying to create a rule that will send an email to a list of webform submissions, notifying them when new content is created. So far, here's what I have: Event: after saving new content of type ...
1
vote
3answers
26 views

How to send an email to a specific user on new account creation using Rules?

I have an alumni association portal. When a new user creates profile on the portal, that account stays blocked until a specific user from that batch/department approves it. I am trying to make use ...
4
votes
1answer
118 views

How to create a node from a Webform using rules?

I want to create a node based on a webform data using the Rules module. This is because of a complication surrounding relationships within the associated CRM system. I am already at the point where ...
0
votes
0answers
17 views

Add donation panel in checkout page without cart

in my website is possible to buy one item at time, so I have a rule that empty the cart when a new item is added to cart (and another to skip the cart page, because i don't need a cart). This works ...
1
vote
1answer
33 views

How can I update content automatically every X hours?

I have a content type that I want updated every five hours. When some nodes haven't been updated, the I'd like to alert a content admin with a warning message containing the list of nodes that have ...
3
votes
0answers
77 views

How to add multiple products to cart at the same time with attributes

I have different view blocks that displays multiple products on the same page, each product has their own attributes such as product bundle and custom line item, these serves as an option set / ...
1
vote
1answer
15 views

What causes the errors in the rules that come with Commerce Coupon?

I am trying to use Commerce Coupon module in my project. The problem is after download and enable this module, rules created by this module got error. And I can't find out what happened to this ...
0
votes
0answers
10 views

Avoid return path for SMTP when using The mail's from address in rules

In SMTP settings admin@domain1.com is used. If in rules The mail's from address is different. How to avoid return-path admin@domain1.com? Is it possible to configure that the second address in rules ...
0
votes
1answer
12 views

SMTP server per role

Mails must be sent to certain roles from certain domains. Is it possible to setup SMTP server per role? (through rules or by coding)
0
votes
0answers
9 views

How to send email through rules from a certain domain?

SMTP has two different email boxes for two different domains Domain1 and Domain2. How to send email from a certain domain through rules? Action: Send Email from domain (as the standard rule but with ...
0
votes
1answer
23 views

Send email to webform submissions when new content is created

I have a webform on my site, which collects names and email addresses, for the purposes of receiving content updates. When a new piece of content of a specific content type is added, I want to be able ...
1
vote
1answer
40 views

How to send the views record in an email to admin at regular time interval of 8 hours?

I have created a rule to sent the view results, by using this: <?php $view = views_get_view('VIEWNAME'); print $view->preview('default'); ?> But I want this Rules Action to occur every 8 ...
0
votes
0answers
6 views

Update Quantity of Line Item in all Pending Orders

Let me begin by saying this, although I'm not new to Drupal, I am fairly new to getting into hooks and the like, so any amount of guidance is helpful. Also, I know my use case seems strange, but it's ...
0
votes
0answers
23 views

Update a “status” field of a Group with the best result of a content group field?

I’m using Rules and Organic Groups 2. I have a content type A and a content type B. A is Group and B is Group content. A can have many content group B. The group A has a field_A “status” that has ...