Trying to create user object when certain content type which has a Boolean field called "Create login" which fires the rules(rule1) to create a new user using other field values in content type. This phase is working fine.

There is a another rule which should fire and set the user's(created in rule 1) status to "create login" value ie if we unset the value then that user's status needs to be set to unset.This way we can block and unblock user using single boolean field. Default boolean values are YES and NO.

But for some reason that boolean value is not availabe as data selector. All other fields like id, vid, comment count(numeric) and stutus, comment (boolean) are present.

I think rules should expose boolean field present in entity as data selector. Setting this as feature request because I don't know whether it should be available by default.

Comments

nithinkolekar’s picture

Title: boolean value not awailable as data selectors for "set data value" » boolean value not available as data selectors for "set data value"

little typo..

nithinkolekar’s picture

Issue summary: View changes

forgot to mention on/off value for boolean field.

TR’s picture

Category: Feature request » Support request
Status: Active » Postponed (maintainer needs more info)

Try giving us an example that doesn't use your custom configuration. For example, node:status (published or unpublished) is a boolean value, so is user:status (active or blocked); perhaps you can provide an export of a rule which demonstrates what you're trying to do with just these core values? I personally don't have a problem using boolean values in the set a data value action, as long as the value you're trying to set AND the value you're setting it to are both boolean.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further information provided.