How to pass variable values ​​between blocks custom code?

An AntonioGraca 28 Aug, 2013
Hello
Again, it may be a silly question, probably already has done so. But now I dont see how to solve ...

How to pass variable values ​​between blocks custom code in submit event?
Sorry about a question I think that is basic


Thanks

António Graça
Gr GreyHead 28 Aug, 2013
Hi António,

The simplest way is to add it to the $form->data[''] array, just make sure that you use a distinctive name so that you don't over-write an existing value.

The $form->data array is available all through the event.

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