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
-1 votes
1 answer
48 views

Commerce discount rule

Have this scenario, a user must get 10% discount on only these products (product 1 & 2 is defined in rules), if at least 5 items of each is in cart. Cart: 5 pcs product 1 500 5 pcs ...
user avatar
0 votes
1 answer
82 views

module to test if e-mail is working

In D7 I'm trying to determine the best way to periodically check if e-mail is working. I'm looking for a way to create a workflow that, say, on cron would check the day of the month, if it's the day ...
Pat Leonard's user avatar
0 votes
0 answers
33 views

WSOD when selecting condition in Rules

In Drupal 7.63, I am trying to add a new rule, however I am being greeted with a WSOD. I am doing the following process... Create a new Rule Add condition Select any condition from the drop down ...
ernie's user avatar
  • 11
0 votes
1 answer
124 views

PHP evaluation for "Send HTML email body"

I'm trying to compose the body of an email using PHP evaluation within a rule. The rule is triggered when a new content is saved. Part of the email body is composed using HEREDOC and that works fine....
rrirower's user avatar
  • 349
0 votes
1 answer
167 views

Redirect rule doesn't contain all the query parameters

I`ve set up a Rule to redirect a user after log in. The Rule works redirecting the user to the URL specified, but it doesn't contain all the query parameters after "?". This is the URL value: user/...
Cristina P.'s user avatar
1 vote
0 answers
50 views

How to trigger Rules from Ajax-picture-uploader?

I'm using Rules with event "After updating an existing user account". It should trigger whenever a user uploads a new profile picture. Now I've added an ajax uploader for user pictures, the Avatar ...
dnoncoder's user avatar
-4 votes
1 answer
92 views

create custom rule condition

I want to create a custom rule condition and a custom rule action. For this reason I created a custom module. Despite I found some info on creating the custom rule action, I cant find anything about ...
Dimitrios Markopoulos's user avatar
1 vote
1 answer
42 views

Rule to check specific field of content every week

I have a content type called change_note, and within that I have a field called action, action_owner, a field called action_date, and one called action status. What I am trying to do, is get the site ...
Robert Parris's user avatar
0 votes
1 answer
332 views

How do I fetch a vote given on a node and programmatically apply this vote to the author of the node?

I am using the voting api, fivestar and rules modules to try to fetch the vote a user gave to a node (article) and apply that same vote/value to a fivestar field of the author of that node. How can I ...
BassPlaya's user avatar
  • 338
1 vote
1 answer
122 views

A Rule to copy the user's picture

In Drupal 7.. I'm trying to create a rule that copies the user's profile picture into an image field on another content type. How can I select the 'picture' from a user's account, as a source for ...
dnoncoder's user avatar
-2 votes
1 answer
81 views

Rules Conditions to check changed Developer app field

I want to create a rule that takes an action whenever the overallStatus field of a Developer App is changed. But how do I do this since I think I cant use app-unchanged to compare the before and after ...
Taufiq Abdullah Salim's user avatar
0 votes
1 answer
44 views

Create a X discount for every Nth product from the same category

I know this is pretty complex task, I don't expect a solution, but a guide on where to start. (Drupal 7 is in question) I need to apply X% discount for every Nth products that are in the same ...
Bojan's user avatar
  • 3
1 vote
2 answers
174 views

How to make Rules ignore case sensitivity when comparing strings

I have an issue where I want to use Text Comparison in the Drupal Rules module but sometimes the case doesn't match (one is provided by user input and the other is provided by user data). It's ...
Dan's user avatar
  • 123
0 votes
1 answer
25 views

Display any discounts only at cart / checkout stage

I am selling furniture, I also sell furniture accessories. Both of these have their own Product Types. I use 'Commerce Discount', 'Commerce Discount Extra' and a 'Workflow Rule' to offer a 20% ...
wotney's user avatar
  • 202
0 votes
1 answer
60 views

Send mail to product owner only when the email adress is available

As a follow up to previous questions asked by me: Send mail to product owner with Rules and Fetch Customer Profile from Line Items. I have the following question. I created a rule to send an e-mail ...
Joost's user avatar
  • 1,348
0 votes
1 answer
462 views

Update the date field to the date & time of the node being updated

I am sure that I am missing something very simple here, so I hope somebody can put me on the right track. Use Case: I have a simple content type "Article" A date field of type: "Date and Time" is ...
Elie Masaad's user avatar
2 votes
0 answers
55 views

How to access the fields of a custom node variable in a custom Rules event?

I have created a custom Rules event, following the instructions in https://drupal.stackexchange.com/a/215857/16550 The event provides a custom node variable: function MYMODULE_rules_event_info() { ...
Jeroen's user avatar
  • 2,518
-1 votes
1 answer
238 views

Rule to notify admin by email whenever anyone updates a field in a user profile

I have allowed a certain 'role' to change/edit fields in 'registered' users' fields. I want to receive an email in the admin's inbox detailing these changes using Rules. I tried and failed! Any help ...
Moonglade's user avatar
1 vote
1 answer
325 views

Webform Validation Allow Lowercase Only

I have an email field in a webform that will trigger a rule that checks against that field against a user's email. The issue is, rules is case sensitive so if the webform field had capitals, and the ...
Dan's user avatar
  • 123
0 votes
1 answer
39 views

Rule to create an identical entity to the node created then delete node

I have a content type called "article" and an entity type called "article 2", they both have identical fields. When I create an article node and save it I want a rule to fire that then basically ...
Rich Stevens's user avatar
1 vote
1 answer
44 views

Programmatically / by Rules, remove reference of a deleted user from contents created by that user.

A user [content_editor] got deleted and the content created by this user is referring to anonymous user. While an administrator is editing that content, administrator is receiving user doesn't exist. ...
Regokonda's user avatar
  • 115
1 vote
2 answers
274 views

How do I change the field value of multiple nodes?

I'm working on a Drupal project where users can post classified ads. These are simply nodes created using a custom content type. After 3 months, we want the user who created the node to receive a ...
cmaltais's user avatar
0 votes
1 answer
68 views

How to make role field on approval in the Edit Profile page by Admin

This website has over 1000 users with different profiles. Each user choose their profile on registration. On their Edit Profile page, the authenticated users can change or add more profiles to ...
DamianFox's user avatar
  • 113
0 votes
1 answer
52 views

Update the author_uid for an entity registration

I'm looking to update the author_uid for an Entity Registration in Drupal 7 programatically. I want to replace all anonymous users with the UID of 0 with another UID lets say 2 upon saving the ...
Shawn Matthews's user avatar
0 votes
1 answer
79 views

How to send an email to an Organic Group admin for every comment of their group? [closed]

Drupal 7.x Organic Groups / Rules 7.x-2.9 What is the best method to send an email to the 'Administrator Member' role of a group every time a comment is posted in their group? I am looking to ...
Zachary's user avatar
  • 117
0 votes
1 answer
51 views

Disabling node editing after first node flagging

I use flagging for signing petitions. Petitions should be editable until the first signing (flagging) is done. Now I look for a solution to disable node edition after first signing. My first thought ...
deelite's user avatar
  • 479
2 votes
1 answer
48 views

Set a condition for one field to be unique in all the content types.

I am working with Drupal 8, and have a custom post type called: chapter. This content type is connected with a taxonomy term called: Book. Now, I have a field called: number, for specifying the ...
ValRob's user avatar
  • 281
0 votes
2 answers
651 views

Node creation button/ link

I'm new to Drupal 8. I need to let users to create new node of some content type by pressing a button or custom link. In Drupal 7 I could achieve this by Rules and Rules link modules but I can't ...
JarJar's user avatar
  • 7
1 vote
1 answer
190 views

Custom action context for order

I'm trying to write a custom RulesAction to perform an operation after an order status is updated. Basically, I want to perform this operation after checkout is complete (but this event doesn't exist ...
Aporie's user avatar
  • 365
1 vote
1 answer
173 views

Why do both Text- and Data comparison seem to not work in my Rules conditions?

I’m using Drupal 7.56, the Rules module 7.x-2.11, and CiviCRM 4.6.31. I've been using the Text comparison and Data comparison conditions. Using the Text comparison condition, the condition is always ...
Cristina P.'s user avatar
0 votes
1 answer
29 views

use taxonomy term for reservations how to prevent overlapping

I have a drupal site where reservations are available. We use fullcalendar module to visualize the room reservations. For a reservation the user needs to add a new content. The content uses taxonomy ...
buboreka's user avatar
  • 115
0 votes
1 answer
164 views

phone call Button

I am a newbies in Drupal, currently I use Drupal 7. I want to add one button into content type, to make the phone call when user click on this button. I use module Button Field + Rule, but I don't ...
Alden's user avatar
  • 1
0 votes
1 answer
112 views

Why is Rules Action "Create Linked Drupal User Account" not working?

I’m using Drupal 7.56 and CiviCRM 4.6.31. I’ve been using Rules in Drupal to create a Drupal User Account linked to the CiviCRM contact created. But it's failing. I'm getting the following error: ...
Cristina P.'s user avatar
0 votes
1 answer
86 views

Creating products with Rules and calculating price in Drupal Commerce

I am creating products on the fly with Rules, using Drupal Commerce. After user clicks on checkbox near product (additional service to product), I need to "add the service" to cart. Service is always ...
Lub's user avatar
  • 61
1 vote
0 answers
110 views

Rules, Flags, Follower and New Content Notification

I am trying to setup a couple of rules. So far I have messed with rules some but since I am new, haven't had any success. This is what I am trying to achieve. Have created a user flag called FOLLOW. ...
Progonat's user avatar
  • 639
1 vote
0 answers
25 views

Read opengraph property and use as field title

I have a simple site that generates an article content in the page. This content is a link preview of the article URL. My goal is when an article is created I want to use metatag property sitename as ...
John Rey Tanquinco's user avatar
1 vote
2 answers
2k views

Encode a line break in an HTML email sent by Rules?

I have a rule that sends out an email when a node gets edited in a certain way. The rule fills the body of the email with the value of a <textarea> field from the node that was updated. The ...
Sam's user avatar
  • 819
0 votes
1 answer
37 views

What configures Drupal to send emails on the create or update of an unpublished content? [closed]

My Drupal installation attempts to send emails to a number of users whenever I create or update content but do not publish it. But because sending email is not configured errors are generated. I don'...
vfclists's user avatar
  • 1,269
0 votes
1 answer
60 views

Event is not responding properly

I created 2 rules with the same action, which sends Drupal logs to the site. One is Content is created with the After saving new content (rules_entity_insert:node) event; the other one is Content is ...
John Rey Tanquinco's user avatar
0 votes
1 answer
90 views

Rules to remove user from role on node publish

I have tried the following: Event: updating an existing content condition: NOT node-unchanged published remove user role (I'm stuck here) The last item is my problem. There is no user reference in ...
Ojchris's user avatar
  • 151
0 votes
2 answers
3k views

How do I build the node title from field values when saving the node?

I have a content type (supertest) with the Category and Section fields, which are taxonomy term references. Every user has a Display name field. I need to update the node titles when saving the nodes ...
Somerussian's user avatar
1 vote
1 answer
334 views

How do I Send a single mail with Rules and VBO?

I have a view of nodes that I edit with VBO. I filter this nodes by author. When I edit this nodes I send a mail to author with a rule but I have a problem when I edit more than one nodes with VBO. In ...
kb8's user avatar
  • 467
0 votes
1 answer
205 views

RULES : How to redirect user to a page after login unless they're using the one-time-login-url?

I created a rule to redirect users to the front page after they login. It works fine The problem is when a user uses the link received on his email to choose a new password, or after clicking on ...
NSTK's user avatar
  • 63
1 vote
1 answer
43 views

Fetch Customer Profile from Line Items

In a webshop I’ve build I want to send individual e-mails to owners of a prodruct in the shop after a product is sold. To do this I got this as a solution: Send mail to product owner with Rules But ...
Joost's user avatar
  • 1,348
1 vote
1 answer
73 views

Send mail to product owner with Rules

I have a Drupal 7 site running including Commerce. I'm asked to make the webshop work in a way that the mail send after completing payment is send to the product owner(s). So when creating a product ...
Joost's user avatar
  • 1,348
1 vote
1 answer
87 views

Trigger on selected field change

So I have a Drupal 7 Workflow rule where an email is sent out when a select field on a comment is set to "Approved'. This works fine with the exception being if I then add an additional comment to ...
user1683443's user avatar
0 votes
2 answers
36 views

Rule to deselect checkbox item?

I have a mailchimp subscription content type that add a user to the email list in mailchimp. It works great and adds them to the list. However, I want deselect that checkbox when they fill out a ...
timwhelan's user avatar
  • 258
0 votes
0 answers
45 views

Rules not firing at user creation for non default language

I created a rule that delete a user when a profile field contains a particular, troll specific pattern. It works perfectly when registering with the default language (fr) as current. When registering ...
Jean Vieille's user avatar
2 votes
1 answer
37 views

How to stop users from flagging other users if they have a custom taxonomy term?

I'm working on a project where users vote other users using the Flag module. Each user has a department term reference field. I would like to stop a user from flagging another user if they have the ...
staion16's user avatar
3 votes
1 answer
352 views

How to redirect user to an url when node is flagged?

My problem is related to the Drupal 8 versions of these two modules: rules and flag. What I want to achieve Some node types on my site are offering a global flag as a link (for e.g. "report error" ...
dercheffe's user avatar
  • 151

1 2
3
4 5
46