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
0 votes
0 answers
29 views

Assign user roles depending on webform submission

I have a Drupal site that is giving memberships to a collaborative body spread across several Universities. I am new to Drupal 10, and I have the Rules alpha, and Webform Rules installed. Here is ...
John Mayfield's user avatar
0 votes
0 answers
22 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 ...
user3532287's user avatar
0 votes
1 answer
47 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 ...
tawellman's user avatar
0 votes
0 answers
55 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 ...
Eluchel's user avatar
  • 387
0 votes
0 answers
40 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 ...
BMM's user avatar
  • 103
1 vote
0 answers
44 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 ...
Alex Sh's user avatar
  • 11
0 votes
1 answer
56 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 ...
BassPlaya's user avatar
  • 338
0 votes
0 answers
83 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/...
Rami Sedhom's user avatar
0 votes
1 answer
93 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, ...
aharown07's user avatar
  • 414
1 vote
1 answer
86 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 '...
aharown07's user avatar
  • 414
1 vote
1 answer
147 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 ...
Jennifer's user avatar
0 votes
1 answer
188 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 ...
gscerb's user avatar
  • 21
0 votes
0 answers
67 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 ...
RJ Reedy's user avatar
0 votes
1 answer
74 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 ...
user3108268's user avatar
1 vote
2 answers
213 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 {{ ...
Webster H.'s user avatar
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 ...
Jenni Simonis's user avatar
0 votes
1 answer
87 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 ...
rd89's user avatar
  • 1
0 votes
1 answer
319 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....
timwhelan's user avatar
  • 268
-2 votes
1 answer
511 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://...
Dadaisme's user avatar
0 votes
1 answer
337 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 ...
cateye's user avatar
  • 733
0 votes
1 answer
61 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. ...
blue928's user avatar
  • 3,804
0 votes
1 answer
29 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 ...
yuuuu's user avatar
  • 141
0 votes
1 answer
94 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-...
golddragon007's user avatar
0 votes
0 answers
24 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 ...
yuuuu's user avatar
  • 141
0 votes
0 answers
137 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 ...
blue928's user avatar
  • 3,804
-1 votes
1 answer
76 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 ...
Mehrdad201's user avatar
  • 1,322
0 votes
1 answer
622 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 ...
user3108268's user avatar
0 votes
2 answers
89 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 '{...
BassPlaya's user avatar
  • 338
0 votes
1 answer
169 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 ...
David's user avatar
  • 9
0 votes
2 answers
306 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 ...
Tomáš Bažant's user avatar
-1 votes
1 answer
252 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, ...
Monster971's user avatar
0 votes
1 answer
35 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.)
Sam's user avatar
  • 819
0 votes
0 answers
191 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 ...
Eugene K's user avatar
-2 votes
1 answer
174 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 ...
Hgfdsoiu's user avatar
  • 411
-4 votes
1 answer
79 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 ...
Matthias's user avatar
0 votes
1 answer
37 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 ...
user102319's user avatar
0 votes
1 answer
285 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 ...
Eluchel's user avatar
  • 387
0 votes
1 answer
184 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, ...
Brittany's user avatar
  • 241
0 votes
1 answer
42 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 ...
Orchid's user avatar
  • 149
0 votes
0 answers
40 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 ...
Leo's user avatar
  • 107
0 votes
1 answer
1k 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 ...
Sam's user avatar
  • 819
1 vote
0 answers
209 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 ...
Sam's user avatar
  • 819
0 votes
0 answers
68 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 ...
Darcy's user avatar
  • 145
1 vote
1 answer
56 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 ...
LennertSk's user avatar
1 vote
2 answers
74 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. ...
BassPlaya's user avatar
  • 338
0 votes
1 answer
213 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 ...
sdfff's user avatar
  • 61
0 votes
0 answers
60 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 ...
Joe Miller's user avatar
0 votes
2 answers
55 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 ...
MarcosRua's user avatar
1 vote
1 answer
489 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"....
Kevin Finkenbinder's user avatar
0 votes
0 answers
262 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 ...
Markus's user avatar
  • 113

1
2 3 4 5
46