[forms] Using fileds objects.

fula5

New Member
This is Basic. If I have a form with two objects class field, Field1 and Field2 named. In the first, in its validation using PHP code (Replace) I get a certain result. I want to introduce, in the second field (Field2) that result. Now, how I address from that validation, the second field. (Using then name ?, the table field name? ) Any example?

Many thanks.
 
I think you should be able to do ...

PHP:
$formModel->updateFormData('yourtable___field2', $foo);

Just replace 'yourtable___field2' with the full element name, and $foo with whatever it is you want to set it to.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top