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
0answers
17 views

Delaying a Rules action until previous actions are complete

I'm making an HTTP request in an action which obviously takes some time. I want to use the response of that request in another action, but every time I get an error since the request hasn't completed ...
0
votes
0answers
15 views

With Rules, how do I use variables with Calculate and Set a value actions?

Let's say I have an Entity with a custom integer field added. Let's call the field Global Total (field_global_total) On some event, I want to get the existing value of that field and store it in a ...
0
votes
0answers
31 views

Buy two, or more exact same products and get a better price discount

I want to create a promotion like "2 for 27,90$, 3 for 39,90$". I have installed the discount_extra module and rules too, so I can solve with the "Order discount -> Per-quantity ...
-1
votes
1answer
37 views

There is no token table

I installed the latest Drupal 8 version (8.9.18) on my host with the Rules (8.x-3.0-alpha6), the Token, and the Rules Token modules. I can't see any table showing the list of the allowed tokens, in ...
-3
votes
0answers
31 views

Rules for Drupal 9

In my next new project I plan to use the version 9 of Drupal and I really need to use also the popular Rules modules the EOL for Drupal 8 is Nov 2021. Unfortunately the compatible version of the Rules ...
0
votes
1answer
101 views

Set a Data Value from Text field to Term Reference field

Node has two fields: Text field Term reference field (autocomplete?) The Text field is old and already has 500 nodes with 500 unique values. The Term reference field is new and needs to contain same ...
1
vote
0answers
23 views

Post a message to social sites when the new node is created [closed]

I would like to automatically send a post to Facebook, Twitter, and LinkedIn when a new node is created. I have gone through many and many of the contributed modules but none of them fulfilled my ...
0
votes
2answers
36 views

How to export 1 or several specific rules?

I want to export one or more specific rules or components using Drush. I do have a script to export all the rules and components. drush --pipe rules-list | xargs -I{} sh -c "drush rules-export '{...
0
votes
0answers
21 views

How to use integer fetched from an Entity as an Entity ID?

I have a rule component that is supposed to fetch an integer from a property of an entity named "Course" (ECK property). This property is not an entity reference but an integer. I use this ...
1
vote
1answer
92 views

Automatically have an email sent to page author 11 months after its published date

Hello I was wondering if anybody could help. I'm using Drupal 8 and for every page that exists I need a custom email to automatically get sent to the page author 11 months after that page was ...
1
vote
2answers
31 views

Send an email to a group of users after new content has been created

In Drupal 9, I need to notify all users belonging to a role by sending them an email about the new created content. Everything's fine, but I don't know how to put together the email addresses of these ...
-1
votes
1answer
44 views

Rules Custom Field

I am developing a Drupal site, where the administrator creates user accounts. Indeed for this site the administrator creates user accounts, he fills in the fields with the strict minimum (Last name, ...
0
votes
0answers
18 views

Using rules to Flag a Product Display Node on Checkout

Every user is supposed to purchase Particular product only once. So i have a view to list the Product Display which by using FLAG module i can list only Unflagged Product Display nodes (Products ...
0
votes
1answer
16 views

Pass a webform value to a node via Rules?

I have a rule that is successfully creating a node of a content type when a webform is submitted. How do I pass a value from the webform into the created node via rules? (This is a Drupal 7 site.)
0
votes
0answers
58 views

Issues with Domain Access module

Using Drupal 8.9.13. I cannot seem to make the site I am building functional with the Domain suite of modules installed. Symptoms: After installing and enabling the Domain module, the site generates a ...
-2
votes
1answer
78 views

Force user to create a node after registration [closed]

How to force a user to post a node after registering? The scenario would be the following: after registering, the user could not access the site without having created a node. Once this node is ...
0
votes
0answers
22 views

Send an email to editor of webpage 6 months after creation/updated date

I'm trying to find a way of emailing the editor of a webpage 6 months after it has been updated so they can check the information is still up to date. I've been reading through some of the existing ...
-3
votes
1answer
38 views

Sending reminder Email if taxonomy term and webform submission term reference match

This is a tricky request and I cant get my head around it completely. A restaurant delivers only to certain districts within town each day (on an irregular schedule). The webpage shows the next 7 days ...
0
votes
0answers
36 views

Check multi-value field values to see if they are different after save

I have an ECK entity (not a node) in Drupal 7 that contains both properties and fields. Some fields are single value fields e.g. field_tags and others are multi-value fields e.g. field_description ...
0
votes
1answer
19 views

Add author to a newly created node

When users sign up, I create a new node and add that user into one of the entity reference fields through rules. What I built so far is the following. After saving a new user event Create a new ...
0
votes
1answer
51 views

How do I get the current URL in a rule?

I am trying to make a Rule where after the user logs in they are redirected to the front page except when they are setting their first time password or resetting their password To do it I want to use ...
0
votes
0answers
40 views

User's Name, Roles and Mail not accessible throughout the CMS

I'm trying to access different properties of a Drupal user, such as name or mail, but they are not accessible, either from Drupal Rules module or from the emails sent when a new user has been created ...
0
votes
1answer
66 views

SMS password recovery

I'm currently using D7. When my users attempt to request a password reset, 95% of the time, these reset emails land in their spam, or are blocked by whomever their email provider is. That being said, ...
0
votes
1answer
29 views

Why is my Rules page redirection based on data comparison not working?

I have to redirect to specific page for article content based on the its entity reference field value Eg : article content having field_test2(field_name) reference to sample / 10164( taxonomy ...
0
votes
0answers
26 views

hook_user_insert() doesn't fire a custom rule

The operation should be as follows: Trigger an event after registering a new user. test_rules_rules_event_info (example_rule_event) it's my event test_rules_user_insert when a user is registered ...
0
votes
1answer
138 views

Token path to file URL, filename, etc.?

I'm writing a Rule that sends an email when a user uploads a file to a node. How would I output the file's URL and filename in the body of the email? First, some things to note: This is an Entityform ...
1
vote
0answers
37 views

Token to output the last value in a multi-value field?

I have a text field in an Entityform set to accept an unlimited number of values: I'm trying to build a Rule that sends an email with the text from the last submitted value from the field. The token ...
0
votes
0answers
37 views

Send email notifications to Users who have flagged a node

For a site, I 'Events' which have a datetime field for the start time of the event. We also have 'Flags' to allow Users to add specific events to their calendar. Now, we would like to send Users email ...
0
votes
0answers
19 views

Boolean property from entity not available in rule

The setup I have an entity (ECK) that has a boolean property (not a field). In that same entity I have a regular text field property. I have a rule that contains a conditional in the action section. ...
1
vote
1answer
35 views

Memory error when updating user field with Rules

I'm using the Rules module to update my user email signatures. The rule get's triggered whenever an account is updated and performs a simple custom action. This is the action, all it does is save a ...
1
vote
2answers
34 views

How to allow users to 'add' values to a multi-value field but not edit any previously add values?

I have a field called 'Remarks' on an ECK entity (not a node) and Role A is allowed to leave remarks but I don't want them to edit previous remarks, I just want to give them the option to add one. ...
0
votes
1answer
70 views

How can I automatically flag new comments?

I have a Drupal 8 site with Flag and Rules modules. How to flag a new comment ? I want that when a user creates a comment, the comment should be automatically flagged. I created a type of Flag on the ...
0
votes
0answers
36 views

Workflow Rules breaking site deployment

I'm trying to deploy a development Drupal instance to a test environment, but something is going wrong with Rules. I copied the entire site's filesystem, dumped the database with mysqldump, imported ...
0
votes
2answers
27 views

Create an order as administrator user and let users continue with the checkout

I am using Drupal 7 and the Drupal Commerce module. I need the ability to create an order as administrator user and let users continue with the checkout. What I have tried: Get the order ID and send ...
1
vote
1answer
131 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
0answers
54 views

How to fetch User from Entity Reference in Rules? (to obtain email from a user field)

I'm using an Entity Reference field with select list, target type User (so a user can be selected and saved as event organizer) How can I fetch the actual email (instead of name) so i can use it in ...
1
vote
0answers
33 views

How to trigger a rule whenever users update their picture

Using Drupal 7 and the Rules module I need to trigger a rule whenever users update their user-picture. I tried using the event "After updating an existing user account" which does trigger the rule, ...
1
vote
2answers
39 views

How can I fetch the Inviter in Rules

How can I fetch the Inviter of a user in Rules? I'm using Drupal 7 and the invite-by-email module (part of the invite module https://www.drupal.org/project/invite), to allow users to invite others. ...
0
votes
1answer
39 views

How can I print a custom message for unpublished nodes upon submission?

Structure > Content type > ContentX > Edit > Unchecked published. Structure > People > Permission > Anonymous users have access to create node for Content Type "ContentX". An anonymous user goes to ...
2
votes
2answers
47 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
1answer
37 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
0answers
26 views

Loop an Entity Reference Vocabulary Field

So working through my rule I would like to use a loop to execute an action. In my content type I have an entity reference to a vocabulary called "Contacts". I want the loop to loop through all the ...
0
votes
0answers
24 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 ...
2
votes
0answers
123 views

How to schedule content every Wednesday at 18.00 (6 PM)?

Looking for something which was easy in Drupal 7, but can't find it or can't get it to work in Drupal 8. import feed do not publish content immediately run a rule that sets the content to publish ...
1
vote
1answer
311 views

How do I send a HTML email?

Does anyone know how to send HTML email using the Rules module? This was a pretty common task in Drupal 7, and I think the rule was included with the Mime Mail module. The Drupal 8 version of Mime ...
0
votes
0answers
25 views

How to set all-day date value in a Rules Component

I have a node with a Date field set to February 8th, 2020 but when I try to set a Date Value as 'Data to Compare' but the date/hour keeps changing. How do I set the data value for all day? Drupal 7....
0
votes
0answers
25 views

Correct Way For Rules to Update A Users Purchased Pay-Per-Node Value In Users Balance Account

Using Ubercart Pay-per-Node module, a user purchases posting Node rights to upload a set amount per order. Generally a Balance is set in their Ubercart Purchase history but on my testing site no such ...
1
vote
1answer
46 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
1answer
181 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
2answers
32 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 ...

1
2 3 4 5
46