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
30 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
34 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
21 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
25 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
27 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
26 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
33 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
17 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
32 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. ...
0
votes
0answers
45 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
38 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
21 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
24 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 ...
0
votes
0answers
36 views

Implementing a rules loop

I can find reference that there is no loop UI for Rules but that it is implemented in the module using expressions (https://www.drupal.org/docs/8/modules/d8-rules-essentials/for-developers/expressions)...
1
vote
1answer
61 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
18 views

How do I retrieve a list within a content type of values from a field of all user profiles?

Within a content type I want to create a field to select from a list of business units names, based on the values of a field of all user profiles, BU, which contains the business units names, but in a ...
0
votes
0answers
23 views

Adjusting the shipping price for a product after the order was placed

I'm using Drupal 7 Commerce module and I need to be able to edit the shipping price of an order after the has been placed. This is a B2B site, so the prices are displayed without VAT. I'm using the ...
0
votes
0answers
38 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 ...
0
votes
0answers
19 views

Get emails from field in rules

I have node with field, for example field_assigned, type Entity Reference where I can select users by name. After published this node type i want with Rules module send mail to selected users. Here is ...
1
vote
0answers
32 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
36 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
33 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 ...
0
votes
0answers
18 views

Schedule email to user 7 day after registration with the rules module

Has said in this question Schedule an email to be sent to new users a week after registration , sending a email multiple day after user registration was easy with the rules scheduler module in D7, but ...
0
votes
0answers
12 views

How to flag a node and take the values from a node in a block and set these in fields of the flagged node

I am creating a calendar view showing the available sessions of a Teacher (role). Each session has a global flag named "Book Session". A Student (role) can have multiple courses but only one needs to ...
2
votes
2answers
41 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
31 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
17 views

Using rules to populate a node reference field

I'm trying to auto-fill an multi-value entity reference field on a node with all of the other nodes that meet a certain criteria (promoted on the front page in this instance) using the rules module in ...
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
22 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 ...
0
votes
0answers
28 views

Name in Loaded Drupal user is not available in Drupal Rules

I'm trying to create a Drupal Rule which uses the name of the Loaded Drupal user. But when trying to access that field from the Loaded Drupal account, the only fields available is Picture and ...
2
votes
0answers
80 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
104 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
23 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
22 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
101 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
140 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
20 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
131 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
45 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
64 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 ...
0
votes
2answers
94 views

Create new node and assign it to user after they have been registered

I have one user role on d8 and have few additional fields on user account so when people are registering they can leave additional data. What I would like to achieve is that when user registers - new ...
0
votes
0answers
41 views

hook_default_rules_configuration can't debug it or force it to load

I am trying to debug a hook from title, here it says http://api.drupalhelp.net/api/rules/rules.api.php/function/hook_default_rules_configuration/7.2 "This hook is invoked when rules configurations ...
0
votes
0answers
39 views

“Drupal is initializing” rule firing multiple times

I am using the Rules module and the event "Drupal is initializing" in a rule to check if a user has clicked their confirmation link in their email that Drupal has sent them to verify their account. ...
0
votes
2answers
36 views

Rules Redirect User at Login by Role to URL not working

I am trying to redirect any user with a particular Role at login to a URL. I am using Backdrop (Drupal 7). I have looked at most of the posts relating to this problem, and tried many of the examples ...

1
2 3 4 5
46