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
5 views

Rules - how to print in an email nodes deleted when rule fired

I have set up a rule that deletes all nodes that are older than 7 days which works fine. What I cannot figure how to do is: List the title of the nodes that have been deleted each time and send in ...
0
votes
0answers
8 views

Need help sending e-mail with SKU, billing address, and shipping info to dropshipper

I have a product type with a term reference. This term reference lists different dropshippers. My goal is to send en e-mail to the dropshipper referenced when an order is placed. Right now I have a ...
0
votes
0answers
23 views

Send pdf attachment in “Send html e-mail” using Rules and MIME mail

I have installed Rules, MIME mail, Printpdf. From help of which I have created nodes and it's pdf using printpdf. Now I have created a rules for when new content is created, How can I send pdf from ...
1
vote
3answers
24 views

Password request redirect to another page

I click on forgot password page it redirect me to http://example.com/user/password which is fine now when i enter email id . it redirect me to "http//example.com/user */. I want it to redirect ...
0
votes
1answer
14 views

Unable to use rules to update field after the first update

I currently have a field that shows the last updated date on a user edit page. I'm using the current configuration for rules. Event: After updating an existing user account After saving a ...
0
votes
0answers
20 views

Auto creation of a node for each uploaded file in the form with rules?

Hello there? How's goin'? I'm trying to create a node for each file uploaded in a form (entity form). The form consists of one file field: uploading_file. Now I can create nodes with the rule but ...
0
votes
1answer
10 views

In drupal with Rules module have to restrict the edit and delete options using Field value “approved”

In my website i add three roles. user, tester and admin. when user submit the content, tester will check and approving it. My need is before the content will be "approved" user can edit and delete his ...
0
votes
0answers
16 views

Get parts of current page url for use in rules

I have the following setting: A content type "Task" with fields: term reference: unit name integer: unitnumber entity reference: here I am referencing an entity form type. I have specified as ...
0
votes
0answers
10 views

How might I 'pre-register' users to various OGs before they have logged in?

In a Drupal 7 installation that relies heavily on organic groups and user accounts authenticating via LDAP. Drupal accounts are prohibited. We'd like to be able to 'pre-add' folks to various groups. ...
1
vote
1answer
35 views

Use of a global variable ('submission counter')

I'm trying to construct a registration form (of a node) wich stores serial (ascending) values in a hidden field. The form is open to unregistered users. I made it with rules and variable (every time a ...
1
vote
1answer
10 views

Copy filefield image to different filefield field

I am upgrading an older D6 site to D7. Way back we made the mistake of creating separate image fields for different content types. So instead of just creating a field field-image and reusing it, we ...
1
vote
0answers
8 views

Rules help to get contact_id from crm-core

Having a hard time trying to create a rule to 'Clear URL(s) from the page cache.' Specifically I want to clear the path - crm-core/contact/[contact_id]/activity/[activity_id] example: ...
1
vote
0answers
13 views

Data comparison, compare order total with custom field?

I have multiple restaurants with each another value for minimum order price, this is a custom price field in the content type "Restaurants". I would need to make a rule where the total order amount ...
0
votes
0answers
6 views

How to add “view mode” to a Rules Component?

I've been trying everything I can think of, but I cannot get Rules to provide view-mode data for me to work with when creating a Condition component. I can set this up with regular rules just fine, ...
1
vote
1answer
11 views

Is there a way to trace PHP errors logged from Rules?

Occasionally I'm seeing an error in the error_log [10-Apr-2015 10:16:45 America] PHP Parse error: syntax error, unexpected 'Some text' (T_STRING) in ...
1
vote
1answer
23 views

Rules won't let me change some node properties

I am trying to create a new rules component (action set) for publishing content that has been unpublished and I cant seem to set a few of the node properties. I will either use Flag or Rules Link to ...
0
votes
2answers
15 views

“Can't create table errno: -1” when trying to create the cache_rules table on D7

I'm having a very strange problem. I have a website on Pantheon (Nginx) that I attempting to import into my local dev environment, but when I import, it is failing when it gets to the cache_rules ...
0
votes
0answers
21 views

Drupal 7 - Rule sending email with field collection

I've defined a content type that contains a field collection. The field collection contains 4 fields. When the content is created, it may have one or more of the field collections. I set up a rule ...
0
votes
1answer
31 views

“Fetch entity by property” for multi-value term reference field

Node A and user both have a term reference field which referenced to the same vocabulary, the term reference field of Node A is single-value, but that of user is multi-value. I created a rule: after ...
0
votes
1answer
21 views

Redirect user to dynamic url

I am writing a custom rule, I do not know how to approach getting the correct URL for the redirect. I have a page - website.com/content/newsletter-activity-001 that needs to redirect an anonymous ...
2
votes
2answers
41 views

How to let users choose one role from 2 offered on their account page?

I have Drupal 7 installed on my local WAMP server. I need some simple solution to let users choose one role from 2 offered on their account page AFTER registration. Is it possible to do it with the ...
1
vote
0answers
22 views

Return to views navigation list of nodes after editing a node in the list

I am using Views Navigation module. I have created a list of articles using views and selected "Add navigation links on node pages accessed from this view" under "Views Navigation" in Advanced. The ...
1
vote
0answers
15 views

Unpublish commerce product display when stock is '0' with rules

Does anyone have an idea of how to do this? I tried it with the reaction "after saving commerce product" but I wasn't able to access the node. Edit: I tried accessing the node by looping through ...
0
votes
2answers
50 views

Creating programmaticaly node don't save custom fields

I'm using this code in Rules, after saving a certain type of content, in execute custom PHP code. By now, i'm just trying to create anothe node of that type after the first is created. The problem is ...
1
vote
0answers
14 views

Quiz Rule won't work when trying a user profile condition? (D7)

I have this Drupal 7 site, that uses Rules and Quizes. I have a rule that adds a role after the user takes a specific quiz. It does work. Event After updating existing content Conditions Content ...
0
votes
2answers
44 views

Need to automatically rotate the result of a view once a week (Sunday night)

The view (block) displays content (field collection items) on my home page. I had it set so the client could choose what to display by checking a boolean field. The view works fine, but now the ...
0
votes
1answer
15 views

How to delete a node with same specific field content and by same user when a more recent one is created in drupal 7?

I have created a review system allowing users to make a review of a place. One of the fields for each review is the actual location which needs to be filled. If a user decides to create a review of ...
0
votes
1answer
22 views

Parameter page=0 gives problem in rules

I have a rule which is activated with the following url redirect/startcoursewithpage?course=502&page=1&module=471 The condition of the rule is: - Check if URL argument exist for course - ...
0
votes
1answer
15 views

How to change the author of a node after payment using the rules module?

I would like to use the rules module to change the author of a node after payment. Even though I have limited experience with the rules module, I am sure it is possible to do. This is what I'm ...
0
votes
2answers
26 views

Rule to send an email when role is changed

I'm trying to send an email to users after their role has changed. So far, the rule is triggered every time the profile is saved (even without role change); I suspect that the data comparison is not ...
1
vote
2answers
68 views

Add user to Organic group after commerce product order with rules

I would appreciate any help, I have been searching for a solution for over a week now. I have tried this tutorial https://drupalcommerce.org/blog/10809/selling-organic-groups-using-drupal-commerce ...
0
votes
0answers
7 views

How to examine changes in a multivalue reference field with Rules

I have a Courses content type containing a multivalue reference field to the Teachers. At the same time each Course is an Organic Group (in order to handle the access permissions separately) I'd like ...
0
votes
1answer
23 views

How can i populate data from a reference node into another content type?

I have two content types. hospitals and referral form. I would like to pull data from the hospital form automatically, example hospital name, address, contact etc when the user fills in the name of ...
0
votes
3answers
48 views

Redirect to page before login

Now i know there are some ways that a redirect on login can be setup, ie using views etc, but i think my issue maybe a bit more complicated. When a user accesses a node for example where they are ...
0
votes
1answer
20 views

How do I get all the users in an organic group with specific role programatically?

I'm trying to use rules to send an email to all users with a specific role in an organic group when someone requests to join the group. This code almost works. It returns all users from a specific ...
0
votes
1answer
8 views

Rules - Check if coupon has been added to an order

I need to check in Rules if a coupon has been added to an order as a condition. I have tried using the ENTITY HAS FIELD option in Rules and then a data selector of Commerce-order and to then look ...
0
votes
0answers
8 views

How do I generate a rule that will post to specific Twitter accounts?

I'm trying to create a rule that will publish to twitter depending on what the group is. I want it so that if the nodes group ref is set for a value to send to a specific twitter. If there is no ...
0
votes
1answer
43 views

How to compare a field value with each title values?

I need to compare two field values. Let's say I have a content type named "Specimen". The content title is the accepted name of that specimen. A second field, named Synonyms, can be filled by users ...
0
votes
2answers
23 views

How to loop over a list of Organic Group users using Rules

When a user requests to join an Organic Group, I want to send an email to the group's admins. I've found this answer ...
0
votes
0answers
15 views

How to create a 'universal' node-add form where you can select the content type it will be

Goal: A form that submits the form fields as parameters to a Rule. This is used to create a 'universal node add' form block, where users can insert - Title - Body - Groups Audience How it works: When ...
0
votes
0answers
6 views

Commerce: Disallowing products of different types in cart

I want to disallow existence of different product types in the cart. So I thought to create two rules: One to remove a product from cart if there are already products of other product types in it ...
0
votes
0answers
12 views

Access term reference's field in Rules

I am creating a node (via Feeds) with a term reference field (Department). The Department vocabulary has a text field for email addresses (Email). So, for example, the term "Business" has a field with ...
0
votes
0answers
14 views

How to Setup Rules to Add a Flagged File to a New Node

I have a view that is showing a list of Files. Each file has a flag on it and when that flag is clicked I want to use Rules to create a new node that has that file populated in a File Field. Help is ...
0
votes
2answers
67 views

how to setup rule events for before/after video is played?

How can I set up a rule events for actions to occur before and after videos are played in a node? Thank you for any tips/ help you can give!
0
votes
0answers
44 views

Drupal 7 webform file field rules attachment

I have a webform where a user can upload a file; I want this file to be attached to the e-mail using the drupal rules module (https://www.drupal.org/project/rules). I have installed all the required ...
1
vote
1answer
19 views

How do I get rules to select a random node?

I'm working on my cron rule that will post to twitter every cron run. Thing is for this rule I need it to post a random node that either conforms to specific values in certain fields, or does ...
1
vote
2answers
24 views

How to send to redirect a used after creating a node and display a message?

I want to be able to re-direct a user after created a node from a specific content type and this display a message. How can I accomplish this ? Its the best way is by using rules modules or custom ...
0
votes
1answer
19 views

Drupal 7 Commerce Stock Decrease stock when reverting cancel the order

I have used drupal commerce module. I have rules to increase stock when the order process is cancelled and decrease the stock after completed the order process. When i cancelled the order status, ...
0
votes
0answers
17 views

Flags, rules and node type situation

got a situation with flags, rules and node type... I have an event website where people can add events to their own calendar. Once the event is completed, they can then edit their "registration" to ...
0
votes
1answer
25 views

How do I create a rule to run during every cron run?

I'm creating rules for posting to twitter. However I need these rules to run every time cron runs. What is the best way to structure these rules so they send the appropriate post at the appropriate ...