Questions tagged [rules]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

How to make the Rules module perform a redirect to an URL that includes a query string?

I have created Task nodes, and I want to redirect to the previous (source) page after creation of a new task. I don't want people to see the task node. That page includes a view of all tasks. For ...
2
votes
2answers
587 views

How to eMail a file uploaded to a Webform to a sysadmin using the Rules module?

I have a webform where a user can upload a file to the webform. I would like to be able to email the file via Rules to a sysadmin. I know I can send it from Webform directly, but I am also needing to ...
2
votes
1answer
255 views

Rules - Set language of message notification

We need to set up a rule that will send an email in the language of the Customer of an order LANGUAGE. But the Message notify action in rules takes the CURRENT user interface language... so that ...
2
votes
1answer
1k views

How to build an Email Diggest using Rules

I am building a Website using Drupal 7. This website contains events, event-comments and event-registrations (=Registrations module): Event Event Comments Event Registration Now I need to inform ...
2
votes
2answers
129 views

How to limit adding content of a specific content type to paid memberships only?

I have created a user role "seller" when user enters to their account a "Add blog post"-tab is shown to user when user click on it he/she can add "Add blog posts" "Add blog posts" is a node form ...
2
votes
2answers
459 views

With a 'review' node type and a node reference to a 'product ' node type limit number of user reviews to one

In a product node type with a review node type that has a reference field to it, how do I only permit one review per user per product node? Do I use the Rules module and if so how do I configure the ...
2
votes
1answer
371 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: ...
2
votes
3answers
792 views

How do you make entity fields appear in Rules when converting a Webform submission to node?

Steps to reproduce this use case: [Rule event] Submit data on a specific Webform (new submission) [Rule action] Create content node by type [Rule condition] Use 'content is of type' condition [Rule ...
2
votes
2answers
349 views

Using computed field value in Rules

I'm using Commerce module and I have a line item with a computed field that's calculating a date. This field finally shows a date. Then during the checkout process I have a form with a Date field (...
2
votes
1answer
527 views

Where is the Rules Evaluation Log?

Where is the Rules Evaluation Log? I need to view it but I can't find it.
2
votes
1answer
3k views

Rule check if field value changed give always true

I need a rule that checks if the value of a field has been changed by a particular role. I created a rule with event "After updating existing content". I added two conditions : user has role : ...
2
votes
1answer
75 views

+1 user field after comment is made

I created a new user field to keep count of comments. I want to increase it by 1 after a user posts a comment and decrease it by 1 when comment is deleted. Is there any way I can use rules to do ...
1
vote
4answers
517 views

What's wrong in my rule for sending e-mails using VBO?

I am trying to send a mail to a set of users when a node is created, so I made a users view including VBO field and a rule for it. You can see the settings below. It's about D7. But when the rule ...
1
vote
2answers
1k views

Creating new users with Commerce & Rules: ERROR

Commerce has a problem with the Rule to create a new User account for an anonymous order: ERROR: Missing configuration for parameter param_field_[fieldname] According to a drupalcommerce.org ...
1
vote
1answer
693 views

When using Rules to set a value on a taxonomy term reference field, I get choices like “field:0”, “field:1”, etc. What do these numbers mean?

When I add a "Set a data value" action for my taxonomy term reference field, Rules allows me to choose from the following: field-age field-age:0 field-age:1 field-age:2 field-age:3 What are these ":...
1
vote
1answer
549 views

emailing users in user reference field with rules

I am working on a site for an academic conference. Right now, we have two content types (1) proposal and (2) peer review. In the proposal content type, an author can add multiple presenters to a user ...
1
vote
1answer
127 views

Set value on newly created node using Rules

This is what I have now: Content type 123 has a Entity Reference field referencing content type XYZ. If new content is created of type XYZ then Rules creates new content of type 123. So by creating 1 ...
1
vote
1answer
2k views

How to get field values in rules condition from fetched entity

I have a content type "Event" that's linked to a registration type. Inside rules I want to trigger the action only if a field value from the host entity is "Open" (it's a checkbox field). Under ...
1
vote
1answer
143 views

How to display 'Terms and conditions' before starting a download, possibly using Rules?

We have a page displaying various download options. When the user clicks one of the options we would like to display a terms and condition page and then take the user further to the actual download ...
1
vote
0answers
1k views

When to use Flag's submodule flag_actions instead of Rules Actions?

If you enable the Flag module, but not its submodule flag_actions (with short description "Execute actions on Flag events."), and you navigate to admin/structure/flags, then near the bottom it shows a ...
1
vote
3answers
1k views

Hide or show fields based on whether the node is published

I'm looking to show and hide form fields based on the current progress of a node using contributed modules like Workflow, Maestro or rules. For example, I would like to show certain fields if a ...
1
vote
2answers
266 views

Easist way to moderate an image via a php GET callback request?

I want to add some code that allows me to use an image moderation service called Webpurify http://www.webpurify.com/image-moderation/documentation/callback/. I can send the url request using a rule (...
0
votes
2answers
765 views

How do I check a custom field has a value?

I'm using the "Entity is of type" condition for the After updating content event, the rule only fire when the field has a value of that updated/created node. The field, which is part of a custom ...
0
votes
2answers
524 views

Twitter-like follow button

I'm trying to make a twitter-like "following" system for a content-type I have. Users have an entity reference to the content-type. What I want is a user to go onto the content and click the "follow"...
0
votes
1answer
1k views

How to pass a Flag field's value to a Rules Component triggered by the flag?

Assume a flag (created using the Flag module) which triggers a rule, using Rules Event "When something is flagged" (with this flag). And assume that this flag has 2 fields defined for it also, i.e.: "...
0
votes
1answer
178 views

How to direct a specific role to a specific page

This is related to this question: How do I redirect a user role on login (Drupal 6)? My biggest problem is that the only rules available as far as I can see are on user login, period, nothing for a ...
0
votes
2answers
1k views

Rules - After updating / saving user not working

I'm using Rules module to execute a python script after a user has been created / updated. This python script retrieves information of users from the database and feeds a datapushing / realtime data ...
6
votes
2answers
409 views

Which user does the Rules module execute as?

I've set up a rule which is triggered by "after saving a new user account". This rule simply sends an e-mail. The e-mail contains various tokens, one of them is the field [account:field_country]. I'...
4
votes
1answer
74 views

Why is the database not updated before a next Rule is launched?

I have two Rules (created with the Rules module) that are both launched when an article is flagged with the Flag Approved: Rule 1. Publish the flagged article with the action Publish content. Rule 2. ...
4
votes
3answers
3k views

How to use webform submission data in a Rules Condition?

I want to send an email when a user fills in a webform, but only if it is our review form and if the user gave the feedback higher than a 7. So we are asking how good we are, and the user gives us a ...
4
votes
1answer
795 views

What may be causing “fails the check integrity”?

I need some help with the Rules fails the check integrity issue. I am running the Rules version 7.x-2.7. It works most of the times and appears to be suddenly. When I checked on the dblog it has ...
3
votes
2answers
741 views

How to add product details to Drupal Commerce order confirmation email

Default email that is sent when user completes the checkout process contains order number and other details. I want to include additional product details and product type in this email. How can I do ...
3
votes
1answer
183 views

How to set a new taxonomy term without overwriting an existing one when using Rules?

I'm using the Rules Action Set Data Value to set a taxonomy term for a specific user (uid= 75). The tag field exists in the user entity, and is set to "Unlimited". There's nothing complicated about ...
3
votes
2answers
580 views

How to add and delete a user to another group using the Group module?

I am using Drupal 7 and the Group module. I would like to create reaction rule or some code which automatically signs the user up to group 'blue', when they sign up to group 'red'. I wouldn't mind ...
3
votes
2answers
398 views

How to send mail for every X months using rules?

In my user profile there is date of orientation(date field) from date(current date) and end date. When user fills the date field, it should generate an Mail for every X months. ...
3
votes
1answer
339 views

How to troubleshoot Rules when a required variable for an event is not provided?

I'm seeing a strange behavior on my site and I'm trying to figure out how to correct it. I have a rule that triggers on the event After updating an existing user account. This rule uses two ...
3
votes
1answer
296 views

How to use Rules to send separate email to every user referenced in user reference field?

I have a node with a user reference field, in which a user can select unlimited users who they have a relationship with. I'd like for the saving of this node to trigger a separate email to be sent (...
3
votes
2answers
2k views

Send mail to email addresses from webform when a content is saved

I want exactly like this Send notification e-mail after new content was added but the answer is not seems to be question specific. I have a webform where I get email id of the anonymous users and I ...
3
votes
1answer
268 views

How can I make a view that shows users all the who have flagged a single user?

Background I want to add a tab to the user profile that shows the logged in user which other users have viewed his/her profile. I want to control this list in Views. Until recently, I have been ...
3
votes
1answer
384 views

Rewrite id of a exposed filter block?

Hi there I'm trying learn how to rewrite a #id of an exposed filter block (ie. a searchbar filtering a list view. Is there an easy way to do this? Isn't something that is possible to do with rules? ...
3
votes
1answer
378 views

How to create a rule to assign roles to users based on some checkbox items in their profile?

I am pretty new to Drupal. I am using Profile2 so that the user can select there own user role. So say I have a profile page with some checkbox items like Automotive Computer Garden etc How would I ...
3
votes
2answers
149 views

How to prevent edit or delete of some content by its author depending on an approval status field?

Here is a screenprint to illustrate part of my current implementation: This is what I want to achieve: If the value of 'Admin Status' is not "Approved", then the author can still edit or delete his/...
3
votes
2answers
4k views

Triggering the Feed Import module

I have a Drupal 7 website that is intend to be fed by a JSON file. This file, is actually processed and updated by a ETL tool that runs periodically (each 3 hours by example). Once my ETL tool has ...
3
votes
3answers
845 views

Voting a post several times by same user

I have a case where authenticated users can Vote a content many times. I want a button at the top of the Node saying Vote This and when the users click the button it'll ask for confirmation Do you ...
3
votes
1answer
247 views

Combining AND and OR in Rules

I'm trying to set up a rule (using the Rules module) with AND and OR conditions. I have a content type with a field A (date) and field B (time slot). The rule needs to check if field A is either e.g. ...
2
votes
0answers
919 views

How to create a Rules action set to calculate a sum of integers in a Field Collection?

I'm having a Field Collection 'My List' with two fields: 'Amount' (integer) and 'Date' (date). I often count the 'Amount' items with Rules like this: Add a variable: Parameter: Type: Integer, Value: ...
2
votes
1answer
372 views

Minus Userpoints for down votes

I have configured Vote up/down module for voting. For every vote, content author will be awarded 5 points for up-vote, but i am facing problem for down votes! i can not understand how to minus ...
2
votes
1answer
166 views

Loop through all entities with rules

I have a content type (called Issue dates with fields called field_issue_date (date type) and field_issue_type (term_reference)) and by using Rules module 7.x-2.9 I want to check if the taxonomy field ...
2
votes
1answer
265 views

How to get the pre-save version of a field collection in rules

I have a node with a field collection called itinerary, and that field collection contains a user entity reference called traveler. The node can have unlimited itineraries and an itinerary can have ...
2
votes
1answer
364 views

How to resolve the Ajax error when trying to add a VBO Action to a Rule?

We've a large site running Drupal 7 with OG, Flag, Rules, etc. OG uses a subscription model where you have to confirm you want to join a group (or leave a group) so we've decided to move to a Flag ...

1 2 3
4
5
7