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

Drupal and node.js configuration

I have a problem with Nodejs and Rules action with node.js modules First, I have installed node.js on my server following the README.txt instructions and then configured the node.config.js file as ...
1 vote
1 answer
779 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:...
2 votes
1 answer
604 views

How to implement a Rules Action to loop through quantity of a products bought?

With the Drupal Commerce module, I created a new product type I use for selling points to my customers. The product has a custom field named “points” (field type integer) where I specify the amount of ...
0 votes
1 answer
746 views

Simple webform with payment module

what I need do is not an ecommerce site. On my drupal website I need a simple web form with a payment (by paypal) and a node reference field prepopulated (by the entity refence and entity reference ...
3 votes
2 answers
2k views

How to prevent a PDO exception when using Rules to Set a data value after saving new content?

I need to write a rule that edits some elements of the node, as soon as it is created. Unfortunately Drupal doesn’t like that and crashes whenever you try to save the node within a rule that was ...
0 votes
3 answers
2k views

Send Mail After Checking Date Field Value

My content type (product) has a date field named Expired Date. All I want is like this: check value of expired date field from content type product. If value equal to 7 days from now, send mail with ...
0 votes
1 answer
423 views

How can I build a "visitor history" using Flag/Rules?

I need to build a history for visitors so they can see which pages they've visited (ideally filtered by type). To do this, it seems that the correct combo is to use Flag module and then Rules. I'd ...
2 votes
1 answer
498 views

Admin approval of Commerce order

I am building a proof of concept ecommerce solution using commerce kickstart v2 I wish to implement a system where a user can submit an order but an admin must approve orders before the customer can ...
2 votes
1 answer
618 views

Rule to send an e-mail with the URL of an uploaded attachment after node change

I have a Drupal 7 site with a custom node type with a custom attachment field. After a (kind of this custom) node has been published, I got an e-mail with the help of Rules module. I would like to set ...
2 votes
1 answer
785 views

How to check in a rule if the data from a field collection has changed?

I want to add a rule (using the Rules module) for printing a message after changing a field in a field collection. The field collection consists of the following three fields: Reference to Version (...
0 votes
1 answer
512 views

How do I add shipping costs to orders?

I have a really complex set of shipping rules I have three product types Product type A with a rate of £1 per product Product type B with a rate of £2 per product Product type C with a rate of £3 ...
2 votes
2 answers
699 views

Using computed field value

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 (...
1 vote
2 answers
657 views

Clone nodes and change fields with Rules and VBO

I' trying to create a rule component that clones selected nodes and then changes some fields, using Rules, VBO and Node Clone. VBO and Node clone work fine, but I can't change values of every field ...
0 votes
0 answers
15 views

Using Rules to calculate end date based on start date

I have a reservation content type with field_start_date that the user sets for staying. Users can update this node at any time. I want to be able to: Calculate the field_end_date based on the proposed ...
0 votes
1 answer
35 views

Rules Action 'Set a data value' of a DateTime with CurrentDateContext is not using UTC date

I am having a hard time finding documentation on this. I have a Date and Time field (field_start_time) in a Drupal 10 ECK Entity (wo_time_clock). I found that it is saving the date and time in ISO ...
0 votes
0 answers
48 views

How can I get the email addresses from a webform submission list and use them in a rule to send an email out when new content is published?

My website has a webform that people can fill out to keep up with the site, I want to be able to send an email to everyone on that list when new content of certain types is published. I was planning ...
4 votes
0 answers
446 views

Node access user reference

Main Modules: Node access user reference Node access node reference Flags Rules I'm trying to give access to a user that clicks on a Join Project flag link. I have a User Reference Field attached ...
0 votes
0 answers
34 views

Acessing referenced entity as a token to use on email notification

I am using Drupal 10 and Rules module. I have created a rule to trigger when a new content of type "A" is created. That content has a reference to another content type, "B". I ...
0 votes
1 answer
47 views

Fetch the total number of rows in Rules View to use that number in Rules

I have a View that lists entity IDs of some sort and I have created a Rules View for this. In Rules, I have created a component where I want to fetch the total number of rows from that Rules View and ...
3 votes
1 answer
378 views

How to create a rule to compare an order total with a custom field in a content type?

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 ...
1 vote
0 answers
37 views

Send email "After a webform has been submitted" to submitter

I'm using Drupal 7.97 with these modules: Views 4.25 Rules 2.13 Webform rules 1.6 Recently I upgraded Drupal to 7.97 and Views to 4.x branch, After that my rule that sends email to anyone who ...
0 votes
0 answers
36 views

Automation of publishing using Rules and Workflow

I am currently working on automating status changes in Drupal, my task is to use the Rules and Workflow modules to configure status changes after a certain period. For better understanding, I'll give ...
0 votes
0 answers
37 views

How to add Rules "Context variables" based on node fields?

I am doing a Data comparison in rules condition. But while adding "Context variables -> Data Selectors", I am unable to add node fields like "node.ABC.value" or "node.ABC&...
0 votes
0 answers
60 views

How to use Commerce Product Options in Rules?

This questions is about Commerce Product Options version 7.x-1.0 and not 7.x-2.0, the 2.0 version does not have this problem. The reason we're using 7.x-1.0 is because other module Commerce Pricing ...
1 vote
2 answers
112 views

How to ensure emails are sent only once to users in a Views Block Operations (VBO) list?

I created a view which is a list of comments made by users to a particular node. I then created a rule which triggers upon event "when a new comment is saved" The action is to load the view i created,...
0 votes
0 answers
76 views

How to send notification emails to users who flagged a node?

I want to notification email users who flagged a node. Previously in Drupal 7, there was Views Rules which is used to get flagger email and loop on them to send message. Since Views Rules has no 8/9/...
1 vote
1 answer
363 views

Rules: How to send an email when an OG membership field changes its value?

I have some OG groups in my site. Each group is an online classroom. The membership has a few fields (I use the default membership), and one of those fields is a select field with "approved" or "not ...
0 votes
1 answer
373 views

pass result of Rules loop to variable to use outside loop

In Drupal Commerce, i have created a rule that calculates the price by adding some fields (custom line items), and then sets a result. Now i want to make a loop (to pass over fields of a Field ...
0 votes
1 answer
221 views

In Activity Stream, how is the 'active group' determined when a node has multiple organic groups assigned to it?

I created new blog node in Drupal commons and assigned it to two organic groups. While it appears under both groups' Blog tab (view group_tab_blogs), it only appears under one group's Home tab but not ...
0 votes
1 answer
88 views

Can a Rules action send an email to all users that have set a flag?

I've found some older Drupal 7 info on this, but not much for Drupal 8+ yet. What I want to do: Give users the ability to set a 'notify me' flag on nodes When a comment is added to the flagged node, ...
1 vote
1 answer
80 views

How can I set a Rules action to unpublish a comment when a specific flag is set?

I'm attempting to create a flag that will unpublish a comment when the flag is set on that comment. I'm attempting to use Rules, Flag, and Rules Flag to achieve this. The comment type is default '...
1 vote
1 answer
138 views

Custom event from existing event

I've been reading for days, trying several examples but I'm just not getting it. I have the Rules module as well as the H5P module. I'm attempting to create a Rules event from the existing H5PFinished ...
0 votes
1 answer
353 views

Custom field Rules implementaion

I added new "Markup" field into commerce_product table using custom module. Now I need to create a rule to calculate (sell_price=prod_price*markup), but I can't acccess Markup field throught Rules ...
0 votes
1 answer
178 views

How do I create a condition to test if the value of a field is unchanged?

In Drupal 7 Rules I could create a condition "Data Value is Empty" and could drill down in the data selector to node-unchanged.field_to_test. However in Drupal 9 Rules when I create a ...
0 votes
2 answers
1k views

Can't change quantity of line item with rules

I created a rule that checks for the quantity of a product while adding to cart and while proceeding to the second step of checking out. The action sends a warning message to the site that says you ...
1 vote
1 answer
475 views

Accessing User Fields in Rules

I have added a custom field (taxonomy reference) to my users. Now I want to run a rule based on the values in that field, but the field does not show up in the available items on the "data selection"....
0 votes
0 answers
66 views

Data comparison to workflow state

I am using the workflow module paired with rules. The current issue I'm struggling with is getting the reaction rule condition set up properly to only send an email to users of role when the ...
0 votes
1 answer
71 views

Rule triggers twice

Simple rule to send account email after updating a commerce license. Export { "rules_membership_activation_email_notification_v2" : { "LABEL" : "Membership activation ...
1 vote
1 answer
198 views

I cannot send HTML mail using "{{ node.body.value }}"

I use Drupal 9 and the Rules module to send emails when an Article node is updated. I installed the Mimemail module and set the formatter to mimemail; all the field are correctly rendered. Only {{ ...
0 votes
1 answer
104 views

Rules data selection tokens

I have [order:products:0:node:author:uid] as rules data selection token. In data selection mode that works perfectly, and adds the exact data right where I need it, but when I add that token into the ...
0 votes
1 answer
24 views

Fee amount is incorrect

I have created a fee type. I set up a rule according to the steps on the module's front page. I have it set to add $5.50 to the order. However, it is only adding $0.06 to the order instead. Here is my ...
1 vote
2 answers
763 views

How to prevent a node from being saved/updated by using the Rules module?

I've created a content type 'H'. The following rule (using the Rules module) has been built to prevent the node from being saved/updated if the field 'a' is larger than 5. Event: Before saving ...
3 votes
2 answers
223 views

Send email to customers after particular period of time?

I am using the Drupal Commerce module and I have a product type service for license to be sold on site. I have different licences (products) like 1 year license, 2 year license, 6 months license and ...
1 vote
1 answer
3k views

Generate PDF with Print PDF and send in email

When a user registers he has to select some options that will be defining for the invoice created afterwards. I have a rule that will be executed when saving a user account. This is what I do: Rule ...
1 vote
1 answer
1k views

Create the pdf version of a node programatically (and attaching that pdf version to that node)

I have installed the print module. Every time I create a node of type X a print version can be generated each time I click the print link. The thing is that I need that pdf to be generated ...
1 vote
0 answers
110 views

Rules, Flags, Follower and New Content Notification

I am trying to setup a couple of rules. So far I have messed with rules some but since I am new, haven't had any success. This is what I am trying to achieve. Have created a user flag called FOLLOW. ...
1 vote
1 answer
350 views

How can I edit a custom field with Rule and VBO of a NOT published node?

I'm currently stuck in the creation of a custom rule. I've created a content type "Avviso" with a publishing date field (start & end) and a custom field_stato with this values: Not active Active ...
0 votes
1 answer
1k views

How to send an email once every 6 months using the Rules module?

How to send an email once in every 6 months at 12:00 am for a date field about user renewal which is there in user profile using the Rules module? Its mail should send in cyclic form every once in 6 ...
0 votes
1 answer
80 views

How to access node entity reference on comment save via rules?

I have a content type with a user reference field on it, the users are populated here by a view. When a user saves a comment, I want to access that field and send an email to user in the entity ...
1 vote
1 answer
353 views

Commerce Rule For Sales Tax On Shipping To One State

We want to only apply sales tax on orders shipped to a particular State. I tried to cobble together the following rule from the included 'Price Component' and it seems to apply tax on shipping for -...

1
2
3 4 5
46