Closed (duplicate)
Project:
Rules
Version:
7.x-2.0
Component:
Rules Core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2011 at 22:28 UTC
Updated:
26 May 2012 at 17:35 UTC
I want to set a pre-defined variable ($variable_added) to a value that I extract from a webform submission.
The webform submission is available in the variable $data.
I made an action "Excute custom php code" with the next line:
$variable_added = $data['components']['thuis_doelpunten']['value'][0];
It appears that $variable_added did not get the value that is present in the component on the right hand side.
Do I have to actively save the new value in some way?
Thanks
Comments
Comment #1
Goofy2k commentedComment #2
webroru commentedI would like to know too.
Comment #3
Isostar commentedI also have the same question.
I want to use the PHP code to fire a custom function that calculates a variable. The logic is to extensive to include it in rules.
That variable should be returned to rules.
Comment #4
mitchell commentedSee #1415628: How to: make data variables available for calculations.
Comment #5
mitchell commentedUpdated component.