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

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
14 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
32 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
16 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
31 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
29 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
16 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
39 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
26 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
23 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
21 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
24 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
75 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 ...
0
votes
0answers
21 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
21 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
44 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
67 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
31 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 ...
0
votes
0answers
24 views

How do I clear a list of groups?

I have a membership website I'm working on. When a user renews their registration I want to unsubscribe every group they are currently subscribed to. I would prefer to avoid using VBO but would open ...
1
vote
3answers
91 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
72 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
36 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
31 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
79 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
36 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
34 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
0answers
35 views

Sending SMS text messages from my drupal site

I am trying to send an SMS message sent to site users once a new node is created. I've installed the SMS Framework module, the Clickatell module, I've set up an account on Clickatell, and configured ...
0
votes
2answers
27 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 ...
0
votes
0answers
11 views

Get the name of a Reaction Rule programatically

My module prvides RulesAction plugins (extending RulesActionBase) which can be used by admins when building reaction rules. In some cases the action is not valid and when this happens and the rule is ...
1
vote
2answers
43 views

Rules scheduler reacting on last comment?

I have a content type with comments activated and would like to have a rule that triggers a component when there is no new comments posted after a week. The component works as designed with rules ...
1
vote
0answers
23 views

How to mark related entities as dirty in search api module when edited?

I am using Drupal 7 with the search api. I understand that one of the 'common pitfalls' of the search api is 'Changes in related entities don't lead to re-indexing'. I am bringing in a field called '...
0
votes
0answers
53 views

SMTP + mimemail + mail system not sending to hotmail

I have a webform which sends two emails upon submission: To the administrators of the site via webform emails To the client who submitted an email via rules using 'send html email' Everything is ...
0
votes
0answers
39 views

Checkout rule 'Create a new account for an anonymous order' not accepting mobile number field

I am using Mobile Number module to enable OTP verification. Also, with Drupal commerce, I have also enabled anonymous checkout. During the execution of the rule Create a new account for an anonymous ...
1
vote
0answers
27 views

Why doesn't Rules Conditional recognize a hidden field value?

I'm using Drupal 7. I have a simple "email confirmation" system set up using rules. The setup is this: "Reservation" Content Type has a boolean check box for "confirmed". "Reservation" Content Type ...
0
votes
0answers
26 views

Block or ban ip addresses based on site-wide contact form category

How to create a rule with the Rules module that blocks or bans ip addresses based on the category that they selected on the contact form for anonymous contact submissions via the site-wide contact ...
0
votes
2answers
28 views

delete scheduled tasks fails when task identifier is account:uid

I have an action set as a scheduled task that deletes a user, that seems to be working fine: { "rules_delete_unregistered_user" : { "LABEL" : "Delete unregistered user", "PLUGIN" : "action ...
3
votes
1answer
64 views

How to make Shipping services available in Rules tokens (data selectors)? [closed]

I am using D7 and Drupal commerce, with a flat rate shipping service. In my country the VAT for both products and shipping costs must be included in the total VAT amount. But the only line items ...
0
votes
0answers
52 views

Fields missing on “Create a new entity” for Entityform submission

I'm using Rules to create node from Entityform submission. When I add an action with "Create a new entity", there is only one field ("title" value) available. How can I get the other fields from node ...
0
votes
0answers
26 views

How do I include shipping cost in VAT calculation with Rules?

I have altered the order of the summary items in the summary cart, so that the shipping service is showing before the VAT line. Total amount excl. VAT and shipping 13 735 Shipping cost 160 ...
0
votes
0answers
24 views

Rules action “Send Mail”: doesn't work for more than one recipient

I have installed Rules, Views Rules, Phpmailer. Test mail works. In a rule, I have three actions: 1) Send mail to a specific address: it works! 2) Send mail to all users of a role: it doesn't work ...
2
votes
2answers
47 views

Add a condition on dropdown selection

I have a dropdown in a node and the id of the dropdown is "field_b_status". I want to add condition in a rule if the drop down value is equals to one of the value "Complete" then send email. When i ...
0
votes
1answer
88 views

Access fields of node content type from event “rules_entity_insert:comment”

In Rules 8, I know how to make custom fields of a content type accessible in an event "After updating a content item (rules_entity_update:node)", that is: Condition: Entity is of bundle Entity: node ...
0
votes
0answers
23 views

Delete the image from field if publication is older than XX days

I have Drupal 7, "Blog" content type, which has image field. Task: if the publication is older than 90 days, delete the image from field. The idea was to use Views Bulk Operations for filtering (has ...
0
votes
0answers
54 views

How do I make webform submissions available to Rules and loop

I have a webform application: five (5) questions/statements (Select Yes/No) for anonymous user usage. First result: all five (5) questions are answered "Yes" - the webform gets submitted, emails get ...
-2
votes
1answer
51 views

How to send mail when node is published

I have a content type "Properties". By default, content type is set to "Not published" When users add a node of the content type, node is not published. Another role gets a notification and then ...

1
2 3 4 5
46