Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Engine
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2009 at 08:11 UTC
Updated:
2 Jul 2010 at 12:50 UTC
Shouldn't this be a text field where you could enter a token.
I'm experiencing this problem with a text selection list, a text entry field, and a node reference selection field.
| Comment | File | Size | Author |
|---|---|---|---|
| populate_a_field-no_token.png | 76.79 KB | mitchell |
Comments
Comment #1
mitchell commentedSteps to reproduce:
- Create node type "Issue Status" (then add a few)
- Create node type "Issue" with nodereference to "Issue status"
- Create node type "Issue Comment" with nodereferences to "Issue" and "Issue Status"
- Add Rule: when issue-comment is submitted and field status is different than referenced issue, update issue status field
- Event: when new content is submitted
- Condition: content has type "Issue Comment"
- Action: load parent "Issue"
- Condition: (negate) field status on submitted content and field status on parent status
- Action: populate a field on parent issue
You'll find that at this point, there's no way to enter a token. All that is provided is a drop down menu.
Comment #2
fagoIndeed, that's odd. Basically what we would need here is a way for the user to switch between "Value input" and "Value assignment" mode. I've planned to let the user choose that for any action argument in rules 2.
Comment #3
jastraat commentedCould someone provide an example for how to get around this problem by using the PHP code option?
Comment #4
johnthomas00 commentedPossible duplicate of
"Enter Node Reference"
http://drupal.org/node/473338
Comment #5
curtaindog commentedI have this code attached to an on content being saved event that increments a revision count.
Comment #6
mitchell commentedComment #7
fagoThat's implemented! :)