Skip to main content
13 of 13
deleted 180 characters in body; edited tags
Jeroen
  • 2.5k
  • 4
  • 35
  • 65

How to grant user User Points equal to certain field's value / calculated value?

I've a content type 'Content' with the field 'Value' (an integer). Every time a Content has been published, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field.

I tried solving the first part of my problem with the Rules module like this:

*Event: A node has been published

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick node:field-value in the Points section. I also tried:

*Event: A node has been published

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

Jeroen
  • 2.5k
  • 4
  • 35
  • 65