Questions tagged [rules]
Use it for questions about the engine which allows site administrators to automate actions: the Rules module.
2,289
questions
0
votes
0
answers
2
views
Where is the Ubercart Order Update Email Language Setting?
I am running a D7U3 website and I am having a little trouble (I think) dealing with Rules and translated emails.
Basically, I want Ubercart Order Status Update emails to be in the preferred language ...
0
votes
1
answer
14
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 ...
0
votes
1
answer
31
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 ...
0
votes
1
answer
28
views
Send mail with Data Selector
In Drupal 9 Rules 8.x alpha 7 - I have a rule working. However, I am trying to send an email to the user of the account that is changed.
I am trying to figure out the data selector to make this happen....
-2
votes
1
answer
53
views
Error when installing Rules with composer
I've tried to install the latest Rules via composer on drupal 9.3.9. I am new to composer.
I uses "composer require 'drupal/rules:^3.0@alpha'" and got a similar error that on issue https://...
0
votes
0
answers
45
views
Get term custom field value from referenced entity
I have a node with a taxonomy term reference field. That taxonomy is a list of names can be assigned to the node and it has its own field with an email address in it.
I'm trying to create a rule that ...
0
votes
1
answer
46
views
Entity is of bundle values in Rules
I've created a very basic "reaction rule" on "After updating a order".
I can't figure out what I need to fill in for: "Entity is of bundle" for the fields if I want to ...
0
votes
0
answers
11
views
E-mail uploaded file from file field in node to user using Rules + Swiftmailer
I have a node type "invoice" which contains a file field "field_invoice" (pdf). I'm setting up following rules action and am searching for a way to rules pick up the file from &...
0
votes
0
answers
21
views
Set data value of created date with Rules
I need to set the created date of all nodes of a content type X to 'now' if the created date is older than 14days. It should be happening when running cron.
Cant get it running with Data Comparison ...
0
votes
1
answer
20
views
How can I access or expose the Commerce data in $order->data[] to the Rules module?
Following this old checkout_pane_example.module tutorial, I created a custom Drupal 7 Commerce checkout pane. It's simply a text field to collect special order instructions from the customer.
...
0
votes
1
answer
10
views
Add a second RulesAction to a custom module
I created a custom module containing one Rules Action that works perfectly. I tried adding a second by creating a second php file in the MODULE/src/Plugin/RulesAction folder, with the names and class ...
0
votes
1
answer
24
views
How can I create a notification entity with Rules module
I have installed a notification system and I want to create notifications with Rules when a project content is updated to waiting for approval status.
The rule looks like this:
uuid: 3165768f-15f5-...
0
votes
0
answers
35
views
Use Views Rules to loop over a user's view
I have a contextual view that lists the last expired Course Session of a teacher.
I use a contextual filter like this:
User: Uid
whereby:
WHEN THE FILTER VALUE IS NOT AVAILABLE
Provide default value ...
0
votes
0
answers
21
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
0
answers
26
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 ...
-1
votes
1
answer
47
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 ...
0
votes
1
answer
350
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 ...
0
votes
2
answers
51
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
1
answer
107
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 ...
0
votes
2
answers
65
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
1
answer
65
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
1
answer
18
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
0
answers
78
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
1
answer
100
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 ...
-4
votes
1
answer
44
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
1
answer
20
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
1
answer
126
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
1
answer
117
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
1
answer
31
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
0
answers
30
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
1
answer
359
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
0
answers
53
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
0
answers
47
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 ...
1
vote
1
answer
43
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
2
answers
39
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
1
answer
116
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
0
answers
50
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
2
answers
34
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
1
answer
254
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
126
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
0
answers
38
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
2
answers
41
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
1
answer
66
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
2
answers
53
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
53
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
34
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 to loop through all the ...
0
votes
0
answers
26
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
0
answers
150
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
1
answer
446
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
0
answers
30
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....