Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
0 votes
1 answer
694 views

How to add a rule condition from select-list in a webform

This an export of my rule { "rules_webform_to_simplenews" : { "LABEL" : "Webform to simplenews", "PLUGIN" : "reaction rule", "OWNER" : "rules", "REQUIRES" : [ "webform_rules", "rules",...
1 vote
1 answer
402 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
1 answer
458 views

Assigning a badge to a user using Flag, Badges and Rules

I am interested in assigning to user a Badge after he favorites 3 nodes. I want to do this with Flag, User badges and Rules. How can I do that?
6 votes
1 answer
1k views

How to add multiple products to cart at the same time with attributes

I have different view blocks that display multiple products on the same page, each product has their own attributes such as product bundle and custom line item, these serves as an option set / ...
2 votes
1 answer
465 views

How can I create an event condition for a 404 error?

I set a page for the 404 error. I created the Data to compare: [site:current-page:url], Data value: 404 condition and an action of that condition. When a non existing page is requested, no action is ...
0 votes
3 answers
2k views

Automatic Node Expire / Unpublish with Renew Option

I have a classifieds site and would like to have a node expire after 45 days (unpublished), no matter how many times the user edits and saves the node. However after the node expires, the user has the ...
2 votes
3 answers
660 views

Avoid user to multiple purchase of same product

I would like avoid a user to buy the same product twice or more, I'm not speaking about the quantity limitation during the checkout (I've already set quantity to 1 for every purchase)...for example.....
1 vote
3 answers
649 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
1 answer
695 views

Rules token one-time-login-url is showing up empty

I have a rule that, after submitting a webform, a user gets created and then sends two emails to that user. One saying their form data is being looked at by someone for review before they get a ...
3 votes
1 answer
472 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
2 answers
401 views

How to pass data from a Rules Action to a subsequent Rules Action?

How I can add actions in the Rules module in which they have a relationship with each other sequentially. I mean a 1st Rules Action sequentially passes data to a next Rules Action and in that next ...
0 votes
2 answers
791 views

How to process a multiple values field (comma separated) in a Rules Action?

I am using modules "SMS Framework",Clickatell for sending message and I have configured all the settings which was required. I have also created a rule where node (Article) be saved and send a message....
0 votes
2 answers
693 views

How to trigger email by comparing date value in node?

I'm using Drupal 7, with Rules and Rules Scheduler. I have a content type "Tutorial Class", with fields as below: Class Date and Time Feedback requested (Radio button: Yes/No, default is no) I ...
0 votes
1 answer
644 views

How to programmatically create forums and containers (not forum topics)?

I need to create containers and forums using rules. If I use the action "Create new entity" -> "Taxonomy term" I got that by default the new term created is treated as a forum, not a container. How ...
3 votes
2 answers
496 views

How to add a new user badge after earning a certain number of user points?

I'm using the User Badges and User Points modules. I want that when a user earns a certain number of user points, the user's old badge is replaced by a new one. For this, I have already created a rule ...
1 vote
1 answer
578 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
1 answer
625 views

How do I fill the authors name in a term reference field?

Content type stock contains the term reference field field_producer. What is the rule for Rules in order to fill this field with the node author name on creation? In detail The form looks like: -- ...
1 vote
1 answer
549 views

Clone product display with referenced product

I am using Commerce Kickstart for Drupal 7, and I need to be able to clone products. In Commerce Kickstart you have all the products just as "reference" of node, product display. I mean, the products ...
0 votes
1 answer
589 views

How do I change order of completion rules in checkout?

How do I change the order in which completion rules fire? There is a default Completition reaction rule. I wanted to add a second rule which executes some custom PHP but it's never executed. I see no ...
1 vote
1 answer
431 views

How to check in a Rules Condition if an Ubercart product is out of order?

There isn't a good support for "out of order" in Ubercart for Drupal. I'm trying to fix that with the Rules module. I'm trying to add a rule that disables the product after the stock is updated, ...
1 vote
1 answer
494 views

How to automatically delete all product displays when a product is deleted?

To automatically delete the product displays when a product is deleted, is a feature of the module Auto Product Display, but I don't need that module. Preferably using the Rules module, I would like ...
2 votes
2 answers
2k views

How to check if an entity is referenced before deleting?

Is there a module or a way to use Rules to make sure that a parent node isn't referenced by a child node before deleting the parent? In my case the children require a parent to be created. However ...
0 votes
1 answer
773 views

Redirect user after one-time-login

When users get an email with one time login link, they will arrive on a page to set their password (separated form via Password Separate Form) But once they click submit, it doesn't redirect them to ...
1 vote
1 answer
613 views

How to copy select list value from a webform submisison into select list field new node?

This is the scenario: A webform with the following fields Question -> Textfield Category -> Select options (Listbox) Listing vocabulary HETCAT A content type Question with these fields Title ...
3 votes
1 answer
626 views

How to automatically modify a field after saving content?

I have posted this question on drupal.org (via a comment titled "field modification triggered by saving action"), but I realized that the thread is more than five years old. So I reproduce here the ...
2 votes
1 answer
454 views

How to populate a node reference field that has multiple values?

I'm using the rules to create a new node upon changing the current node publishing status to published. And populate some field based on the updated node field. Im trying to populate a node reference ...
0 votes
1 answer
688 views

String replace with rules

Is there a way to string replace with rules? I'm trying to find some way to transform values without changing a value entirely. Is there something I'm missing, or should I just make a custom rule ...
0 votes
1 answer
511 views

Why does the same Rule Calculating The Sell Price Of A Product fire multiple times?

I'm having dreadful performance with Commerce Kickstart 2. Trying to troubleshoot. I noticed that when viewing any Product in the catalog, the Rules Evaluation log looks like the log below. ...
1 vote
3 answers
486 views

How do I collect field values of a submitted webform?

I'm trying to integrate a Mailchimp mailing list into Drupal. The Mailchimp list requires: First Name Last Name E-Mail The client already has a list in this format so ideally I need to collect this ...
2 votes
1 answer
4k views

How to use Webform values in Rules?

I am using the Webform Rules module and I created an event 'After submitting webform', and an action 'Fetch webform submissions'. When I add an action 'Show a message on the site', I get all the ...
1 vote
1 answer
657 views

Domain Access Login Redirect for main domain and subdomain

I have created three sites namely one.example.com, two.example.com, three.example.com using domain access. Here one.example.com is the main site which can create n number of subdomains. I want to ...
2 votes
1 answer
707 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
745 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
422 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
617 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
509 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
684 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 (...
0 votes
2 answers
2k views

Redirect Using Rules Based on Account Role

Further to this previous question, https://drupal.stackexchange.com/questions/1790/redirect-users-after-login-depending-on-the-users-roles I am trying to accomplish a similar redirect on a D7 whereby ...
1 vote
2 answers
656 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
13 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 ...
1 vote
2 answers
738 views

Showing both original base price and calculated price (inc. taxes), when using two price fields and rules

Building a webshop for customer with Drupal 7 + commerce. I've defined two price fields for commerce product entity: 1) base price (excluding tax) that is wholesale price 2) retailer price (excluding ...
1 vote
2 answers
1k views

Condition on current moderation state

I would like to show a message when content has changed moderation states from review to published. I set this up below but it does not work. Is there a rules debug log in Drupal 8? Event: When ...
1 vote
1 answer
916 views

Rate module and rule integration

I don't fully understand how the rate module integrates with rules. Here's my situation: 1) I created a widget of the type: Number up / down widget which allow users to vote in nodes of the Answer ...
0 votes
1 answer
922 views

Get the displayed node of a commerce_line_item in a component rule using 'commerce_display_path', doesnt work

I ve found something quite interesting in an other post Discount based on a field in product display node in Drupal Commerce? It describe a way to get the 'node display' associated with a line_item ...

1
2 3 4 5
46