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
vote
0answers
11 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
17 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
20 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 ...
1
vote
1answer
38 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
39 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
11 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
23 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
43 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
68 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
16 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
42 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 ...
-1
votes
1answer
34 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
vote
0answers
18 views

“Delete scheduled tasks” not firing [closed]

I have done the following: rule component with action send email notification. rule that schedule the component "after saving a content". When I go to schedule I can see that the rule fires the ...
0
votes
0answers
13 views

Rules Once per day - Can't figure out the Component Selector in a very simple rule!

I have created a component with action set and test it with execution and it works fine. Then i created a very simple rule: 1- event: one per day 2- no conditions 3- trying to fire the component , but ...
1
vote
2answers
41 views

How do I let non-admin user approve comments?

I'm looking for a way to allow a non-admin user to approve comments. I thought a Flag/Rules combination might be a solution but I can't figure it out. I added a content-moderator role, then I ...
0
votes
1answer
40 views

Redirect user after one-time-login

When users get an email with one time login link, they will arrive on a page to set their password (separated form via Password Separate Form) But once they click submit, it doesn't redirect them to ...
0
votes
0answers
16 views

Edit a node via entity reference using Rules

THE SETUP: A custom user type - "Store Owner" - has access to create/manage 2 types of content: Store (which includes a "Related Products" field) Product When the user first sets up their account, ...
0
votes
0answers
18 views

Drupal 7 Entity registration / commerce add to cart wait list

I'm using Drupal 7 with Entity Registration, Commerce and Registration Commerce to connect those two modules. I have an issue concerning registration : if a reservation is canceled, the one on wait ...
0
votes
1answer
100 views

Taxonomy Term Field of a Reference Field in a Product not available in Data Selector for CheckOut Rules

I installed Drupal Commerce Kickstart 2 with drupal version 7.54 and drupal commerce Version: 7.x-1.14. My problem is I want to send email to the store owner every time an order is completed. So in ...
0
votes
0answers
14 views

Check database for status change

I use actually registration entity for a project. The registration follows a specific process with ecommerce. Actually what i need to do is : to give the "canceled" status to registrations that ...
0
votes
1answer
80 views

Send email after content update

I have create a new content type with a field of email. In this field I put the email address of the person I want. The case is: I want every time the node of this content type updated, to send an ...
0
votes
0answers
23 views

Flag/Unflag Taxonomy term when updating Taxonomy field in user profile

I asked this question a few days ago: Send email to all users that are tagged with the same tag a node is when created I decided to go a different route and use the flag and rules module to associate ...
1
vote
0answers
18 views

Rule that sends one email out at specific time each day with view content in it

I have 5 different views that show different metrics within blocks on the front of my website. I want a rule that can send this information to me by email each day at a certain time. How do I do this, ...
-2
votes
2answers
28 views

How to create a rule and inject mysql code?

Can I create a rule on my drupal 7 website and that rule will: Whenever a user is logged in (only logged in users can see this content) and a certain content is clicked I want to write a mysql update ...
0
votes
0answers
24 views

How can send an alert email after 30 days when the content is not updated

Now I am currently using a Drupal 7 for our project. I am using a rule module but I am new in Drupal so I can't know in detail information about rules module. I want to implement functionality like ...
0
votes
0answers
22 views

Entity registration state change to cancel after 30 minutes

On drupal 7, I use Entity registration and created a registration type with a timestamp field which retrieve the actual timestamp (field-timestamp). After registrering, the user has 30 minute to ...
0
votes
0answers
21 views

Rule on bulk webform submissions update

I have a custom view with webform submissions with views bulk operations field. My target is when I run a bulk operation to the submissions that I have selected then a rule must be triggered which ...
0
votes
0answers
22 views

Rules 301 redirect?

I have a rule which checks for URL segment and redirects to homepage. It works good but redirect is 302, not 301. Is it possible to use somehow 301 redirect or that can be achieved only via .htaccess?...
0
votes
2answers
56 views

Send email to all users that are tagged with the same tag a node is when created

There is a lot of similar questions here but I am having a hard time wrapping my head around this. I have a taxonomy term reference field called field_category. This field is available on user/*/edit ...
0
votes
0answers
24 views

Add/assign same Five Star rating to author while adding to Article using Rules

I Need to achieve this functionality only with Rules or combinations with any other module(s). Structure FiveStar field is attached to the node type Article and another with the User profile. ...
0
votes
1answer
21 views

How do I put username into email when send mail to role in Rules?

I'm using Rules 7.x-2.11 and create new rules. I created additional fields in profile and when user select there from option list he got a new role. Next, i created new rule. When create new node with ...
0
votes
0answers
41 views

Is there a way to set date for scheduled unpublishing?

I check in many place but I want unpublish a node after a time like unpublish after 1 day, after 1 year and send notification to the user before unpublish. I know The Sheduler module can do that but ...
0
votes
0answers
39 views

Grant file access to file downloads

I am able to sell a file using Ubercart Drupal 8 module. However, file download permissions are not granted to the user purchasing the file. Do we have a Rule in place for this? How can I achieve ...
0
votes
1answer
26 views

How to create a scheduled mailing list using Rules?

I am looking for a way to send out an email to a list of users once a week in Drupal. My obvious choice was Rules Scheduler, but that has not been ported. Is there a preferred way to do this in ...
0
votes
0answers
23 views

How to limit flagging in drupal 8?

Node compare is awesome plugin but it's just only in D7. I'm using Drupal 8. I have a views page which integrated with flag(compare it) and flipped table module to compare contents. It has limit to ...
0
votes
1answer
27 views

Rules add date variable from webform submission

I have a webform where the user also submits date. I would like to populate a date type field with the submitted date. I tried making variable by "Add variable", but I do not know how to access my ...
0
votes
0answers
16 views

How to change payment method depending on product field

I´m running a D7 Commerce and I need to activate a payment method for some special products. On the Payment Rule conditions I need to check if the product included in the order has a specific value. ...
0
votes
0answers
56 views

drupal_http_request as authenticated user during cron

I have a rule set up that runs during cron. Part of that rule is an action that is supposed to save a PDF (via Entity Print which only authenticated users can access) to my server. It works fine when ...
0
votes
0answers
29 views

Schedule email to be sent to new users [duplicate]

Is it possible to schedule a follow-up email is sent to new users x days after the account is created? I wonder if this can be done with rules. If it can, would it possible to get some general ...
0
votes
2answers
24 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 ...
0
votes
0answers
27 views

Adding values to multiple field collection items with rules

For the last couple of days I've been reading different solutions on forums how to achieve this but it looks like I'm missing something. Any thoughts on how to solve this would be really appreciated. ...
0
votes
1answer
30 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 ...
0
votes
0answers
27 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 ...
0
votes
1answer
46 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....
0
votes
0answers
20 views

Flagging a file as having been 'downloaded' - views link

I have a content type called 'uploads' that includes a file field (each of these nodes has just one download 'attached'.) I have a view that shows just the post date of these nodes, along with a link ...
0
votes
1answer
36 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/...
0
votes
0answers
33 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 ...
-4
votes
1answer
37 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 ...
1
vote
1answer
31 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 ...
0
votes
1answer
118 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 ...