Hi,
I just have created a Rule which should change the value of a list according to date elements.
In CONDITIONS, I'm comparing 4 times date values (Data comparison) and I would like that a specific action is started in ACTIONS. For example, when the first "Data comparison" (CONDITIONS) is True, the first "Set a data value" should be started, when it is the second "Data comparison" (CONDITIONS) is True, the second "Set a data value" should be started etc.
Could someone fix my problem, because my rule didn't work.
Thank you in advance for your bids.
Cheers
Marc
RULES
EVENT
After saving new content
Content is viewed
After updating existing
CONDITIONS
Content is of type
Parameter: Content: [node], Content types: Competence, Contact, Event,...
Entity has field
Parameter: Entity: [node], Field: field_workflow
AND
Data comparison
Parameter: Data to compare: [node:field-campaign:value], Operator: is greater than, Data value: now
OR
Data comparison
Parameter: Data to compare: [node:field-campaign:value], Operator: is lower than, Data value: now
OR
Data comparison
Parameter: Data to compare: [node:field-campaign:value2], Operator: is lower than, Data value: now
OR
Data comparison
Parameter: Data to compare: [node:field-realisation:value], Operator: is lower than, Data value: now
ACTIONS
Set a data value
Parameter: Data: [node:field-workflow], Value: pending (campaign)
Set a data value
Parameter: Data: [node:field-workflow], Value: active (campaign)
Set a data value
Parameter: Data: [node:field-workflow], Value: pending (realisation)
Set a data value
Parameter: Data: [node:field-workflow], Value: active (realisation)
Save entity
Parameter: Entity: [node], Force saving immediately: true