Skip to main content

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
5 votes
1 answer
2k views

How do I bypass cart and go straight to checkout?

I know that you can easily achieve this functionality in Drupal 7 with the Rules module or using the Commerce Checkout Express module. Since Rules and Commerce are not that much integrated yet, I am ...
3 votes
2 answers
707 views

How do I use the Rules module to unpublish content when End Date is hit?

I have a Content type called Event, has a Start Date and End Date. How do I use the Rules module (version 8.3.0-alpha1) to: Publish the Event on the Start Date and Unpublish it on the End Date? My ...
2 votes
2 answers
61 views

How to make fields of a cloned node available in Rules

I have a rule that clones a node once it's flagged. I can set certain parameters for this newly cloned node but not all. I read in other posts that you have to use a conditional rule to identify what ...
2 votes
1 answer
99 views

Send email only if a field has a certain value

I am using webform in Drupal 7 and have a case where I need to send an e-mail only if a certain select field has an option selected. I have installed Rules and Webform rules but am a bit stuck on how ...
0 votes
0 answers
31 views

Send email after node save based on a checkbox in a vocabulary

I was wondering if someone could help me with this. I have a content type called "News", this content type has three fields (Title, Date, Body) I have vocabulary called "Contacts", this vocabulary ...
1 vote
1 answer
640 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 ...
3 votes
3 answers
586 views

Copy data from Webform submission to a node?

I have pre-existing node authored by each user. However, for presentation purposes, I use a Webform to collect data from the user. Existing Node: Assessment field_question1 field_question2 ...
0 votes
0 answers
190 views

How do I use the message module with the flag?

On Drupal 8 I installed the "Message" and "Flag" modules. I created a flag "Report content" and I want a message to be sent to the site administrator as soon as a content is reported. Messages will ...
3 votes
2 answers
2k views

How to fix rules which unable to evaluate action?

I have created two rules to act on some events related to commerce products. The first is to act on reference node delete event, to remove the product upon node delete. the second is to delete the ...
6 votes
6 answers
2k views

Rule condition to check which language is used by the visitor?

I have a multilingual website (English, Spanish). Is there any way to create a rule condition to compare the language used by the visitor against a fixed value? The condition would something like: ...
1 vote
2 answers
400 views

Notify node author of new comments

Has anyone been able to figure out how to notify the node author when new comments are posted on their content? I understand Rules for Drupal 8 is still in its infancy. When I used various tokes ...
0 votes
1 answer
164 views

How to send an email once a new member is invited using the Group module?

I am using the Group module on a Drupal 7 project. I would like the system to send an email notification once a new member is invited. I'm assuming I could use the Rules module to perform this task, ...
3 votes
4 answers
963 views

"Load a list of entity objects from a VBO View" rules action not working

I am trying to use the Rules action called "Load a list of entity objects from a VBO View." I had it working before, but I've since refreshed my DB from prod and I can't remember what my views looked ...
1 vote
3 answers
697 views

How to automatically change a Content type field value based on Date field?

I'm using Drupal 7, I have a content type, where I have two fields for project allocation: Status(Active/Inactive) End Date If the "End date" is less than current date, then the "status field" ...
1 vote
1 answer
51 views

Node display based on conditional view [NULL] field entry or a Rules expression

I am trying to find a solution to empty user Content Listings shown on a User dashboard (landing page). Ideally I want to show a Mini-panel pane or Custom Content Pane instead of a users listing View ...
0 votes
1 answer
427 views

Use rules to assign role based off custom field on user registration

I have a headless Drupal and I'm trying to figure out how to auto assign a role during registration based off of a custom field (field_is_student) in the registration form. I am trying to use Rules ...
1 vote
2 answers
41 views

What rule to use to redirect users, unless already redirected?

I'd like users with certain roles to be redirected to the page /civicrm when they login, unless they've already been redirected elsewhere. For example, an email might have a link that directs them to ...
2 votes
3 answers
787 views

Drupal commerce user based percentage discount

I need to have different order total discount rates in % for each customers. The default discount is 10% for all users and it need to be override for certain users too. i.e administrator can set the ...
7 votes
2 answers
5k views

Disable editing of a node after it has been published

Scenario: A user can create a node (content type "story"). All story nodes that are created are unpublished by default. I have a boolean field called "publish my story". Once this has been checked ...
2 votes
4 answers
2k views

How to delete all nodes referencing a given one?

I'm working on a catalog based on Drupal Commerce. I have a product display content type referencing product entities. I'm thinking about the ways to make life of a content manager easier. I made a ...
0 votes
1 answer
24 views

Entering views result to field through rules

When I create a new OG, I would like the user with the least number of OG subscriptions automatically to be added to this group. So I created a views block where I count and least the user with the ...
0 votes
1 answer
502 views

How to build a simple data comparison rule?

I am working on Drupal 8.7.10 and I have installed a fresh Rules 8.x-3.0-alpha5. Could someone help me to start a very simple rule? I am still struggling with the "new" Rules. All I need is to send ...
2 votes
2 answers
75 views

Automatically creating an organic group for each new user

I would like to automatically create an organic group for each newly registered user. I checked all its settings, no such option with organic groups module, then I checked the rules module but no luck ...
0 votes
2 answers
422 views

Create new node and assign it to user after they have been registered

I have one user role on d8 and have few additional fields on user account so when people are registering they can leave additional data. What I would like to achieve is that when user registers - new ...
2 votes
2 answers
2k views

How to make an OR statement in rules?

I am using Rules with Rules Once Per a Day. Although Once Per a Day is not part of the default Rules, the general core of my question applies to default Rules. I want Rules per Once a day to activate ...
1 vote
0 answers
41 views

Help me write a Rule condition and action to remove discount line item and to add payment

I am trying to write a rule for an existing order. Order has a zero total due to (Commerce) discount, e.g.: Widget $3.00 Discount -$3.00 For the condition, I'd like to check if a specific discount is ...
0 votes
0 answers
52 views

hook_default_rules_configuration can't debug it or force it to load

I am trying to debug a hook from title, here it says http://api.drupalhelp.net/api/rules/rules.api.php/function/hook_default_rules_configuration/7.2 "This hook is invoked when rules configurations ...
0 votes
0 answers
64 views

"Drupal is initializing" rule firing multiple times

I am using the Rules module and the event "Drupal is initializing" in a rule to check if a user has clicked their confirmation link in their email that Drupal has sent them to verify their account. ...
1 vote
2 answers
540 views

How do I make fields available? [closed]

I am using Drupal 7, the Ubercart and Rules module; I plan to use the Views Rules) module. I want to use the Rules module to automatically publish nodes that contain data from a Ubercart order. I'm ...
0 votes
2 answers
83 views

Rules Redirect User at Login by Role to URL not working

I am trying to redirect any user with a particular Role at login to a URL. I am using Backdrop (Drupal 7). I have looked at most of the posts relating to this problem, and tried many of the examples ...
1 vote
1 answer
645 views

Rule to create user on webform submission by anonymous user

I'm trying to create a user with rules on webform submission by anonymous user, as the title says. I set my event (After a webform has been submitted), set my conditions and set my actions. Create a ...
1 vote
2 answers
65 views

Rules scheduler reacting on last comment?

I have a content type with comments activated and would like to have a rule that triggers a component when there is no new comments posted after a week. The component works as designed with rules ...
23 votes
5 answers
9k views

How can I quickly re-save all the nodes on my site (to trigger a rule that activates on content update)?

I made some mistakes configuring a certain content type on my site. To fix these mistakes, I made a rule that performs some actions "when existing content is updated." However, I don't want to go ...
0 votes
1 answer
206 views

Add Attachment to Rules Email - Drupal 8

I am trying to set up a simple rule in D8 that when a new node is created, an email is sent out that includes an attachment from the file system. How can I accomplish this?
1 vote
0 answers
50 views

How to mark related entities as dirty in search api module when edited?

I am using Drupal 7 with the search api. I understand that one of the 'common pitfalls' of the search api is 'Changes in related entities don't lead to re-indexing'. I am bringing in a field called '...
2 votes
3 answers
2k views

Send email when order status is changed [closed]

I need to send a message to the customer when I change the order status (e.g from pending to processing-completed-canceled). How can I do this with Rules?
1 vote
0 answers
31 views

Why doesn't Rules Conditional recognize a hidden field value?

I'm using Drupal 7. I have a simple "email confirmation" system set up using rules. The setup is this: "Reservation" Content Type has a boolean check box for "confirmed". "Reservation" Content Type ...
1 vote
2 answers
834 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 ...
0 votes
2 answers
35 views

delete scheduled tasks fails when task identifier is account:uid

I have an action set as a scheduled task that deletes a user, that seems to be working fine: { "rules_delete_unregistered_user" : { "LABEL" : "Delete unregistered user", "PLUGIN" : "action ...
3 votes
1 answer
96 views

How to make Shipping services available in Rules tokens (data selectors)? [closed]

I am using D7 and Drupal commerce, with a flat rate shipping service. In my country the VAT for both products and shipping costs must be included in the total VAT amount. But the only line items ...
0 votes
0 answers
82 views

Fields missing on "Create a new entity" for Entityform submission

I'm using Rules to create node from Entityform submission. When I add an action with "Create a new entity", there is only one field ("title" value) available. How can I get the other fields from node ...
0 votes
2 answers
37 views

Rule on Saving New Comment not triggered

I want to do some action after saving a news comment which needs comment's CID but I can not do anything after saving news comment!! I have tested any other actions but none of them triggered by this ...
-1 votes
1 answer
707 views

Cannot use object of type EntityDrupalWrapper

I keep getting this error: Fatal error: Cannot use object of type EntityDrupalWrapper as array in /sites/all/modules/rules/modules/php.eval.inc(146) : eval()'d code on line 29 when I use the below ...
0 votes
1 answer
104 views

Access fields of node content type from event "rules_entity_insert:comment"

In Rules 8, I know how to make custom fields of a content type accessible in an event "After updating a content item (rules_entity_update:node)", that is: Condition: Entity is of bundle Entity: node ...
2 votes
2 answers
155 views

Add a condition on dropdown selection

I have a dropdown in a node and the id of the dropdown is "field_b_status". I want to add condition in a rule if the drop down value is equals to one of the value "Complete" then ...
1 vote
0 answers
23 views

Increasing order total weight [duplicate]

Could some one tell me how I increase the weight of an order total using rules and ubercart module?
1 vote
1 answer
50 views

Awarding points with Rules for uploading a user picture

Does anyone know how to create a rule that awards points to a user for uploading an image?
3 votes
3 answers
375 views

Action to be triggered on Comment Approval

How can add new rule to trigger when a comment approve, in Drupal 7?
1 vote
2 answers
518 views

How to use Rules to send an eMail containing a list of nodes with a selected value in a field?

I try to send a list of nodes with certain value in a specific field via the Rules module. This is what I have so far: Event: "After updating existing content of type MyContentType" Conditions: "...
15 votes
2 answers
5k views

Send email notification when a new comment is posted

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
3 4
5
6 7
46