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

Rule with if statement prevents users from saving their user account

I have set up a rule that is causing some odd behaviour. The event of the rule is: "After updating an existing account" However the rule is preventing the user to save the data of his particular ...
0
votes
0answers
6 views

Data Selector for Rules not allowing any value but site:current-user:role:

Similar to this Date Selector not showing up in Rules I'm in the rules module and trying to create a "Content is of Type" Condition. I can set the content type to check for but cannot pick anything ...
1
vote
0answers
10 views

How to make node visitor's list block

How can make for each node's visitors list block? The block must shows list of visitor(AUTHENTICATED USER) of current node?
0
votes
0answers
8 views

Rules: Event: While editing an exisiting node

Okay based on couple of features I require to restrict/disable access to certain field based on other fields while editing the node. the problem is in Rules module, there's no "While editing an ...
1
vote
0answers
17 views

No suggestions in Data Selector (Rules)

following this guide to display alternative prices for certain roles: http://jamestombs.co.uk/2012-09-14/drupal-commerce-different-prices-different-customer-groups But for some reason I don't get any ...
0
votes
0answers
26 views

populate a field when referencing a node

I am using the node reference module. When referencing a node, I want to populate a text field in the new node, with the value of a text field from the referenced node. Can this be done by a ...
0
votes
0answers
6 views

How to set limit rss feed content auto post to twitter

I am using totally 20 only er day per day so u need to collect all new feeds and choose random 20-25 then post 2 at a time for 10 times in a day I am using Drupal 7. I used Feeds module for content ...
0
votes
0answers
9 views

trying to map data from hybridauth to the user account fields but it is not working

I am using hybridauth social login module. Now I m trying to map user data got from hybridauth while social registration. I have written a rule. In action I have added the action 'create new entity' ...
0
votes
0answers
7 views

Rules Scheduler Replacement Patterns for Components

I am using Rules to trigger email for Registration for events on our site. I am building out a component with Rules Scheduler for the Rule to send emails through cron at a specific intervals. ...
0
votes
0answers
8 views

Why are quotes printed through a token displayed as " in an e-mail?

In Drupal 6, I'm using the rules module to send an e-mail every time a new node is created. For the subject of the e-mail I use the token [node:title]. The problem is, that in the e-mail subject ...
0
votes
0answers
6 views

Add percentage based fee/tax to specific product types on checkout in Drupal Commerce

In Drupal 7 Commerce, I have two product types, a service product and a physical product. I would like a 6% fee added to all physical products only when the user gets to the cart review page. ...
0
votes
0answers
8 views

Rules: Set default values in entity creation form

I use Drupal 7 rules and rules link to create an entity depending on another one. The default values of the new entity depending on the entity which it's created from. I have working rules that create ...
0
votes
0answers
9 views

Why is unchanged and new value always the same in rule condition

I have a boolean field called verified defined in profile2. When this field changes from not ticked to ticked I would like to send out an email to the user. Easy I thought with rules Starting using ...
0
votes
0answers
28 views

Drupal commerce order total ignore changed unit price

I have problem with commerce order total counting. Every product has two prices (two fields). One price for everybody and second for exact role. I have rule which change prices if user with exact ...
0
votes
0answers
6 views

How can I implement drupal to run through a table of values, preferably through rules?

I am trying to calculate the cost of custom printed t-shirts on my website. I have a drop down that asks how many colors the imprint will be, and then the quantity of shirts. Now I am trying to ...
0
votes
0answers
4 views

How to create a gear tracker for documenting Merci checkouts

I am working on an Equipment Checkout system using Drupal 7, MERCI, views, panels, rules, and many other modules. I am working for a community college in Oregon. I am upgrading features on an already ...
0
votes
0answers
7 views

How to Publish a Group Node only after a event node has been posted

I'm using organic groups and rules module I want the group to only published a group node after a event node has been created The settings for the group nodes default is unpublished. Using rules I ...
0
votes
1answer
28 views

What does `OWNER` value mean in Rules export?

When exporting a rule from Rules module you get some serialized representation of that rule. I understand everything but the 'OWNER' property in the export string - it has 'rules' value, but what does ...
-1
votes
0answers
16 views

Order Address Component Comparison rule firing unexpectedly

I am having difficulty with a shipping rule and hope that someone can help me to understand what is happening. Background: Some carriers when shipping to Northern Ireland from the UK charge two ...
0
votes
1answer
19 views

Rule to fire only on first time publish of node

We are using workflow moderation for some content types and sent out emails to the author once a node has been published. Sometimes we have the case that an author changes a node after he has been ...
1
vote
1answer
18 views

Rules: Do action on the field of referenced node

I have an "Authors" Content-type, that users can add to their "Article" node while adding a new content as Co-Authors. Note that it's a seperate content-type not users. in "Authors" content-type I ...
0
votes
3answers
39 views

Send a message when a comment is left

I want to send a message to users that have commented on a node each time a new comment is left. I think I am half way there. I have created a component of the content type, added a loop that ...
0
votes
0answers
10 views

Calculate price using percentage from product field

I'm using drupal commerce module and drive with pricing rule problem. User and product have percentage fields, which are discount values separately. Final discount gathered from sum of this fields. ...
0
votes
2answers
65 views

Pass multiple ids as Views Arguments in the Rule action Save PDF as file on server

I'm using views PDF to print out a list of nodes on a single PDF, one per page. Now I have more than 1000 nodes/pages on a single generated pdf, so I'm trying to use VBO and Rules to create a view ...
0
votes
0answers
12 views

How to count emails sent by rules?

Using Drupal 7 views 7.x-3.8 rules 7.x-2.7 I have a rule that will send an email to a referenced user when an admin users changes a value in a select list. I have a view that shows a list of all ...
1
vote
1answer
25 views

Variable containing HTML is not rendering when sent by message notify

I am trying to send an e-mails with message notify and rules, everything is running pretty good, but there's one variable which contains a "HTML code", It describes a table of items that were bought ...
0
votes
1answer
15 views

Fatal error: Class 'RulesI18nStringController' not found in entity.i18n.inc on line 31

My client drupal site stopped working suddenly and gave me this error Fatal error: Class 'RulesI18nStringController' not found in entity.i18n.inc on line 31 i checked the rules module and entity ...
0
votes
2answers
28 views

Drupal commerce - purchase a product at registration

I'm trying to use Drupal Commerce for a subscription site that will have only one product to purchase - a subscription to a service. I'd prefer if a user could either do product subscription as a ...
1
vote
2answers
89 views

How to prevent a user from being saved with Rules?

I'm trying to prevent a user from being saved with Rules when he/she tries to use a username that contains a whitespace. I've already read How can I disallow spaces in usernames? and used the User ...
0
votes
1answer
27 views

$node object not populating with data

I'm using the Rules module to execute custom PHP script whenever a new node is saved after importing via Feeds module. <?php $lid = db_insert('location')->fields(array( 'additional' => ...
0
votes
2answers
28 views

Uploading file, parsing and displaying data

For a site i am building right now, there is one component that I would want the user to upload a file, where it will be parsed (currently a python script, but can be ported to something else). The ...
0
votes
0answers
8 views

managing variables in rules

I came across an issue with a very simple task using rules variables (maybe because I'm used to programming context). I wanted to create a coupon for commerce, those coupons only can be configured ...
0
votes
1answer
28 views

Users get a new password detect forced logout

I want to create a rule: When the user changes the new password, the system should force the user to log out and then use his new password to login. I know the event to choose after updating an ...
0
votes
0answers
33 views

Drupal 7 Rules - After saving existing content not triggered when updating taxonomy

I have the event calendar module installed (https://www.drupal.org/project/event_calendar). The module allows me to create an "event calendar" content type. Once created, I'm able to "approve" or ...
0
votes
1answer
31 views

Delete content in a user registration field after X number of days

I am looking for a way to delete the data in a custom registration field (field:transaction_code) after 30 days. How can this be achieved? Let me explain better. I want users to get the registration ...
0
votes
0answers
19 views

Is it possible to insert value in field using rules?

How can I insert data in database using rules, I created entity type job and added some fields. I want to insert values inside those field when the flag button is clicked. I tried "set a data value" ...
0
votes
0answers
18 views

Tokens are not displaying in email

I have installed the Token module in my project and created one trigger that is birthday trigger. when I set action on that trigger then it has not replaced tokens, it displays as it is. If any ...
0
votes
0answers
4 views

Send email containing content entity data to a user after file download trigger

I have used rules a bit and this should be obvious! What am I missing? I use the trigger "After File Downloaded" (which is either from core?? or from the module pubdlcnt ... it exposes only the file ...
0
votes
0answers
7 views

let user join a group only if he is member of another group

I mean for example in a sub-group structure: Group1 -Subgroup of Group1 I want to validate that if user wants to join "Subgroup of Group1" he must be member of Group1 how would be the rule? Thank ...
0
votes
1answer
40 views

Publish content on user unblock event Drupal 7

I know that this is most probably and easy question but I simply can't get it to work. I have a custom module which generates a form to create a content (unpublished) of a certain type and also ...
0
votes
1answer
31 views

Help understanding rules_invoke_event

So, I have the need to use rules_invoke_event(), however when I attempt to it does not trigger the event. The Rule I created is in Drupal through the Rules UI. However, I am trying to trigger it ...
0
votes
0answers
11 views

Rule to change ubercart role expiration when role is granted

I need to 'standardize' the expiration date of a ubercart role as soon as the role is granted. I think I understand what the events and conditions should be. I can't figure out how to create the ...
0
votes
0answers
12 views

How is a value in “key|value” pair accessed using a drupal function in a webform component?

I need to load the value (title) of the "key|value" pair using php for webform results in rules. I.E. I would like to display "Biography/Memoir" when the array has key "genre_biography." Is there a ...
0
votes
0answers
20 views

Using rules to notify a role, based on shared taxonomies between users and nodes

I'm trying to use Rules to send a notification email based on some fairly complex criteria. A specific node type (we'll call this Meal) is created using a taxonomy of (Cuisine Type), where the ...
0
votes
0answers
28 views

Commerce - how to only show license information for downloadable product variations?

I've got book store in which I sell paperbacks and ebooks. For the ebooks I'm using the Commerce File and Commerce License modules. The issue is that the 'Checkout complete' page always shows license ...
1
vote
1answer
22 views

Loop over first three items of a list in Rules

I have a list and need to loop only over the first 3 elements of that list in Rules, but I cannot find the option to do this. It seems to be more complicated than I had thought.
0
votes
1answer
18 views

View: No Result = Last

I have a field 1 Name and another field 2 Year and have it sorted in Views first by Name and second by Year. If Year is empty I want it to be placed last under each letter. So lets say I have 5 James ...
0
votes
1answer
26 views

How to use Views Rules?

I've looked here: https://www.drupal.org/project/views_rules but can't get past 2.2 Add a "Rules" display. I don't know what that means. I've installed Views Rules but can't find any Rules option ...
0
votes
0answers
21 views

Trying to invoke a Drupal rule from custom code using rules_invoke_event

I am using the Registration Module 7.x-1.3 and I built a rule in drupal. Basic Drupal Rule: After updating an existing registration Content is of type:Live Event Entity has field: Entity: ...
0
votes
0answers
16 views

Drupal commerce: Custom coupon rule

Hello I have Commerce Coupon 7.x-1.0-beta7 I need to create a custom rule for a coupon: For example: User want to buy 4 products I want a coupon that apply 50% of discount for only the 3 first ...