Closed (outdated)
Project:
Rules
Version:
7.x-2.0-rc2
Component:
Rules Core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2012 at 17:33 UTC
Updated:
10 Jul 2018 at 03:23 UTC
Jump to comment: Most recent
Comments
Comment #1
acrazyanimal commentedYou would need to use the "set a data value" action to set it. However, depending on which event you are using the profile2 profile fields may not be exposed. You may need to use a series of "data comparison" conditions to expose the boolean field you would like to set. For any entity you want to expose the fields for you usually need to use the "data comparison" condition against the entity's bundle type.
In your case if you have a user with profile2 profile ( we'll use "example profile" for a lack of a better name ) that has a boolean fields name "example bool" you may need the following "data comparison" conditon:
Data to compare:
account:profile-example-profile:type
Click continue. Then select the relevant profile2 type from the dropdown list. Having this condition will expose all of the fields for that profile.
Then to set the value of you boolean create a "set a data value" action:
Data selector:
account:profile-example-profile:field-example-bool
Comment #2
mrpauldriver commentedThank you. I'm still not getting anywhere and wondering if it is related to another problem I have http://drupal.org/node/1417596
Comment #3
tr commentedIf you continue to have a problem with this in the current version of Rules please open a new issue.