Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a node is created, after 24 hours I want to update the value of a custom field of that particular node. Tried creating rules component as Action Set but unable to locate my custom node fields there. Can anyone help me out how can I change value in a custom field.
Thanks in advance !
Comments
Comment #1
TR CreditAttribution: TR commentedComment #2
TR CreditAttribution: TR commentedUse the Rules Scheduler to schedule rules for later execution.
NO variables are going to be available in your action set unless you declare them as input parameters. So you need to at least require a node as input. But I wouldn't use an action set, because the Rules UI tells you in many places that "To make entity fields appear in the data selector, you may have to use the condition 'entity has field' (or 'content is of type')". This means that in order to see your custom fields, you need a condition. Action sets don't have conditions. Instead, create a Rule component and add the appropriate condition before your actions so that your custom field will be available.