Hi Guys
I'm slowly building a small calculation form.
I have an event switch in the output, where I do a small calculation in PHP.
Is it possible to save the result for use in a later 'box'? And how do I refer to the result later on?
Hi fribse,
Save the result to the $form->data[''] array and then use that value later.
Bob
Hi Bob
I'm sorry, i'm not that experienced in PHP, could you spell it to me, how I do that?
I know it's probably basic, but that's me :-)
I've created a hidden field, which I guess I have to, to have a place to store it, correct?
Hi fribse,
To make it more useful what do you actually have in your two boxes? What do you need to save and use later? And do you need to have two boxes rather than merging into one?
Bob
Ahh, you are absolutely right. Instead of using a complex set of 'event switch' and message boxes, and storing values, I could just use a custom code box, and put php in it with the switch in it, and all the calculations.
Much easier :-)
Now I just have to work on the multiplier thing, posted elsewhere, can't get my head around it...