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
50 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
26 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 ...
0
votes
1answer
30 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
17 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
15 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
47 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
75 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
19 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
36 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
27 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
18 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
36 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
39 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
47 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
28 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
82 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
34 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
18 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
34 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
33 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. ...
-1
votes
0answers
48 views

Set condition using rule module to pass one content type field's value in second content type

I have created two content type Album details and Photos of album. In Photos of album content type i added field (Entity reference type of first content type i.e Album details) and widget as select ...
0
votes
1answer
58 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
22 views

How to fire Drupal Rule when more than single term (from multi value vocab) is selected

In this Drupal tutorial - https://www.drupal.org/node/2815377 - the author demonstrates how you can get a rule to fire if you have a field with a vocabulary with terms termA, termB, termC, and termD ...
0
votes
0answers
31 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
0answers
9 views

How to recalculate the price in d7 e-commerce depending on the number of attributes

I need to increase the cost of the product each time a user attribute is added. Attribute is a text field available to the user in the product. The number of fields added must be multiplied by the ...
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
95 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
45 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
38 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
36 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
43 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
34 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
25 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
23 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
102 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
212 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
24 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
143 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
vote
3answers
191 views

How to automatically change a Content type field value based on Date field?

I'm using Drupal 7, I have a content type, where I have two fields for project allocation: Status(Active/Inactive) End Date If the "End date" is less than current date, then the "status field" ...
0
votes
1answer
21 views

Entering views result to field through rules

When I create a new OG, I would like the user with the least number of OG subscriptions automatically to be added to this group. So I created a views block where I count and least the user with the ...
0
votes
1answer
205 views

How to build a simple data comparison rule?

I am working on Drupal 8.7.10 and I have installed a fresh Rules 8.x-3.0-alpha5. Could someone help me to start a very simple rule? I am still struggling with the "new" Rules. All I need is to send ...
1
vote
1answer
51 views

Using group and rules modules to automatically create group for new user

I am using the Group (not OG ...) and rules modules for this task. I created group type, Applications Support. Then I created a rule, After saving a new user. Under the rule, I used the following ...
2
votes
2answers
65 views

Automatically creating an organic group for each new user

I would like to automatically create an organic group for each newly registered user. I checked all its settings, no such option with organic groups module, then I checked the rules module but no luck ...
1
vote
0answers
33 views

Help me write a Rule condition and action to remove discount line item and to add payment

I am trying to write a rule for an existing order. Order has a zero total due to (Commerce) discount, e.g.: Widget $3.00 Discount -$3.00 For the condition, I'd like to check if a specific discount is ...

1
2 3 4 5
46