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
0answers
924 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
271 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
814 views

How to limit number of nodes a user can create per day?

In order to curb ardent spammers in Drupal 6, I'd like to limit the number of forum nodes that an authenticated user can create per day. So for example ordinary users can not create more than 3 posts ...
2
votes
1answer
80 views

How to access rules condition values in the rule event?

I have created a rule (using Rules) in which I added 3 conditons. Now I want to access the conditions values in the action that on which condition the action is performed. I am attaching the ...
2
votes
2answers
1k views

How to use Rules to redirect a user based on URL argument?

I'm using Drupal 7 and the Drupal Commerce module. I'm now able to capture an argument passed by URL using Rules (thanks to this helpful thread). However, I'd now like to be able to redirect the user ...
2
votes
2answers
143 views

How to apply flags retrospectively for group subscriptions using Organic Groups?

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 ...
2
votes
2answers
698 views

Triggers on node creation of certain content-type

It is a question that always gets answered by "use rules module." Unfortunately, this site depends heavily on a few actions and triggers already, and a migration is not in order. Are there trigger-...
2
votes
2answers
488 views

Get organic group name in a rule?

I want to create a rule that sends an email to all users of an organic group when content is posted to that group. In the email I want the name of the group to appear in the subject. I'm completely ...
2
votes
1answer
80 views

How to count the number of consecutive days on which verified users accessed the website?

My main problem is very similar to How to grant userpoints to users who perform a login 5 days consecutively?: I would like to keep track of the number of consecutive days on which verified users ...
2
votes
1answer
863 views

How to check in a rules condition if an image field has value?

Is there any way to check if a field has no value (image field) after saving the content in Rules? I tried Data Value is Empty, but it doesn't work! Output of the rules: { "...
2
votes
3answers
157 views

How to change user info with a rule when Points are granted to user (using userpoints module)?

I need to create a rule to change info of a user when this user is granted with points using the http://drupal.org/project/userpoints module. I need the rule to have a condition and action like: if ...
2
votes
1answer
231 views

Using the modules Rules and Facebook Autopost, the previous post body summary is used instead of the current post

UPDATED 8/29/2016 Thank you so much for everyone that responded and special thanks to Pierre.Vriens for the detailed explanation. I am sharing my answer in case anyone finds this useful. After much ...
2
votes
1answer
119 views

how to obtain fivestar field value in rules?

I'm trying to a grab a value of a fivestar field within rules and having no luck. Basically I'm getting users to fill a feedback form and if the fivestar field value is less than 3 Stars then I want ...
2
votes
1answer
373 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
2k views

How do I set up a shipping condition that accesses the value of a specific field in product?

I have a term reference field in product called "Weight" with values "Light", "Medium" & "heavy". I am using flat rate shipping service and trying to check the value of "Weight" field in ...
2
votes
1answer
3k views

Drupal 7, Rules, Convert text to date and set a date field

I've some string like "11/28/2012" and i want use to populate a date field in my nodes/entity. In rules i use "set a value", select the date field and add php code: $mydate = field_get_items(($...
2
votes
2answers
978 views

Is there anyway to get more control over when CRON runs? [duplicate]

I've just setup some rules using the Rules Scheduler module. Everything is working as expected, except that when a rule is scheduled for 10:30am, it might not run til 11:00am, because that is when ...
2
votes
1answer
106 views

How to loop through comments using the Rules module?

I have created a rule (using the Rules module) using Rules Event "After updating existing comment" and some comment fields must be changed. Loop node:comments is used but nothing happens when ...
2
votes
1answer
286 views

Additional classes for price based on price components

Is it possible somehow to add classes related to price components to the price container div? So you would be able for example to style a price based on how it is changed by its components. I thought ...
2
votes
1answer
1k views

Update values of multiple value field programmatically? (Rules action)

I'm trying to create a rule to populate a multiple value order reference field in Drupal Commerce, on checkout complete. I haven't been able to achieve this through Rules UI, so instead I'm trying to ...
2
votes
1answer
377 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 ...
2
votes
1answer
302 views

How to know when a node is going to be deleted when using Rules Event “Before saving content”?

I'm using a rule with Rules Event "Before saving content", but this rule is also executed when I delete the node. I'm recalculating some fields, I don't need to do this when the node is going to be ...
1
vote
0answers
124 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 ...
1
vote
1answer
81 views

How to create a rule to flag users when they're approved as a Trusted Contact?

I need some help with Drupal Commons (7.x-3.46), Trusted Contacts (one of its modules), and Rules. I need to create a rule so that whenever a user is approved as a trusted contact, the user is also ...
1
vote
1answer
36 views

Send Mail to Specific Roles

I need to send Emails to site users with specific role like "Administrator". This is achievable using view on any action like "After saving new content".. etc.. But i want to send emails on one menu ...
1
vote
2answers
1k views

Rules - send email when users role changes to x

I need to send an email when an admin changes a users role to role x. The email should not be sent if the users role is already role x and 'save' is pressed on the user page. I have set up a rule: ...
1
vote
2answers
482 views

Spam users and rules

I'm getting swamped by spam users. Can I use rules to automatically delete users that 1) don't have content/comments, 2) have never activated in a few weeks, and 3) have only activated the same day ...
1
vote
1answer
222 views

User Points Rules: Remove points (based on content type)

I currently am using the User Points Rules module to grant points (both moderated and unmoderated) to users for signing up for content using the Signup module. However, for cases where the user ...
1
vote
1answer
602 views

How to validate dependent fields for a content type?

In one of my content types I have 1 field 'venue' with a drop down option. If I select 'venue' as 'other' from the drop down, some other fields (say 'venue address' and 'venue name') should become ...
1
vote
2answers
647 views

Add product variations to product display with rules

Using RULES, can anyone point me in the right direction to add lots of product variations to existing product displays? Everything I've researched seems to be centered around creating the display ...
1
vote
2answers
414 views

How to fire a Rule after adding a new file in multi-value field?

Working with Drupal 7.56, Rules 2.10, Conditional rules 1.0-beta2 and File Entity 2.4 I can't fire a rule when I add a new image in a multi-value Image field (related to File Entity for inline fields)...
1
vote
1answer
211 views

How to access node properties of another node using the Rules Link module?

I wonder how to access node properties via another node with Rules. I already store the link of my other node in a field (of the original node), but I don't know if we can do that. I'm using the ...
1
vote
3answers
171 views

How to prevent a rule to be triggered inside a rule?

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 ...
1
vote
1answer
136 views

Access user profile data

I have a field on a user profile called field_certified_tap. When this is equal to 1 or true on user update/create, I want to send an email. Currently, I do not see this field in the Condition->...
1
vote
1answer
124 views

How to use the Rules module to unset all flags (set x days ago) when cron runs?

Case: users set flags on content using Flag module (flags are per user, not global). Requirement: after a period of time the system should automatically unset these flags using Rules module. The ...
1
vote
1answer
162 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, ...
1
vote
1answer
1k views

Email sent to customer from Drupal has RED LOCK icon in the email

I'm using Drupal Commerce. Overall it's working well. I have SSL setup and enforced so users HAVE to use 'https' (via .htaccess). I'm able to test fill out the form and it submits. PayPal gets the ...
1
vote
1answer
296 views

Send email with profile2 fields with account email token in rules

I am trying to send an email to users contains information they put into their profile2 fields when they registered on the website. My problem is that their is no email field token available in rules ...
1
vote
1answer
36 views

How to display a Rules Link only if access to display the linked content was granted?

I'm using the Drupal Commerce 7.x, Rules Link, and Content Access modules. In my site Classified ads can be created, and then people can use credits (via User points) to pay for unlocking "contact ...
1
vote
1answer
717 views

How to delete a scheduled task using Rules Scheduler?

I use the rules scheduler module (D7). So far all fine. What I use it for: a user registers with username and email this users then gets 4 emails over the next four weeks, sent by the scheduler BUT:...
1
vote
1answer
258 views

How to correct my Rules Component to perform VBO operations for the Group module?

I followed the instructions included in the answer to the question "How to implement the mass operations on the Group's members page using Views?". The 2 Rules Components in it (to either block or ...
1
vote
1answer
390 views

Generate image styles with a rule on “node save”?

This QA has some discussion about the lazy image loading. Imageinfo_cache is D6 only at the moment, and rules_image_styles apparently runs on every node view which isn't great for performance. ...
1
vote
2answers
46 views

How to create a rule which after several updates in 5 minutes of a node sends 1 message?

When a node is being updated I have a trigger for this in the rules engine. I want a notification of this in the email. The node is however updated several times in 5 minutes. I only need 1 ...
1
vote
1answer
1k views

node:url token not returning clean (alias) URL

This is a follow-up question of: How to delay the execution of a rule for 5 minutes? When not delaying the action, the node:url token does not return the alias URL, but the URL with the token ID: ......
1
vote
1answer
1k views

How to set the value of a Fixed amount Commerce Coupon using Rules?

It is practically impossible for me to set the fixed amount of a coupon created with rules. The coupon is generated allright with a coupon code but the fixed amount value is always empty, I can only ...
1
vote
1answer
459 views

How to send an email to all members of a group after the group is flagged?

I use the Group module. I create a flag to mark groups. I wish that when a group is marked, an email is sent to all members of that group. How to do this ? I created the following rule, but I find ...
1
vote
2answers
89 views

Which Rules Event should I use to change the value of a Select List field?

Use Case: I've got two select lists Due Date Status The Due Date is a Date field, the Status is a select list with options: Current, Past Due. By default, Current is pre-selected. I want to run ...
1
vote
1answer
350 views

Views bulk operations interrupted due to insufficient rights

I created a view to replace the default view of the members page of the "Group" module. When I am a site administrator the mass operation works. When I am an authenticated user (No administrator of ...
1
vote
1answer
70 views

Creating followups to Commerce Orders for each Line Item

I had asked a question in another thread, and thought it might be helpful to create its own thread just in case it could be helpful to any other developers out there: "I am trying to create a rule ...
1
vote
1answer
605 views

How do I change the site mail address?

I want to change my site-wide email address. To do this, I changed the settings on admin/config/system/site-information. However, when I send an email from rules, it still uses the old email address. ...

1
3 4
5
6 7