Computing Values in a Custom Code Event Then Emailing

bgchrono 15 Nov, 2011
Hello,

In the OnSubmit event, I have a Custom Code action which computes values. I'd like to access these values from an Email action that occurs after the Custom Code action.

How do I pass data between the two actions? I've tried
$form->data['packageCost'] = $packageCost;
in the Custom Code action and
{packageCost}
in the Email action's template to no effect.

Thank you,
Ben
GreyHead 16 Nov, 2011
Hi Ben,

That looks correct to me. Drag a Debugger action into the On Submit event to check the actual values in the $form->data array.

Bob
bgchrono 16 Nov, 2011
Thanks for that tip, Bob. In order to get things working, I needed to switch the custom code mode from view to controller.

Ben
This topic is locked and no more replies can be posted.