2

I have a Node Reference in Users.

When I set Add an item to a list with Node identifier for some event, it doesn't add. It looks like this

Add an item to a list
Parameter: List: [account:field-badges], Item to add: 28

Set a data value works with comma separated list.

2
  • 1
    Have you added an action to save the entity after updating the field?
    – Clive
    Aug 27, 2012 at 23:19
  • Yes. Doesn't work.
    – Toktik
    Aug 29, 2012 at 18:59

2 Answers 2

2

The "add an action" form says: "To make entity fields appear in the data selector, you may have to use the condition 'entity has field' (or 'content is of type')."

My field was in the data selector but the item was not added by the action.

I changed the action to a rule with a condition "entity has field" as requested, the field being the one I wanted to add a value to. Then I recreated the action in the actions area.

This was the solution for me. Hope this helps.

0

I have had problems in the pass with setting a variable with Actions.

Try this:

  1. Add [new] Action -> Add a variable -> Integer -> 28 -> label: badge_number & machine_name:variable_badge_number
  2. Inside your 'Add an item to a list' action, click 'Switch to data selection' and change 28 to the new variable. I believe when done, the data selector textfield should read 'badger-number'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.