update element before submiting

is_is

New Member
Hello,
i use fabrik to create a form and i want to update some fields using php plugin before submit, i tried :

$formModel->_data['table___element'] = 'test';
or
$formModel->updateFormData('table___element', 'test');

ps: i can update elements values after submiting but it's not work onload for me
 
I had the same problem when trying to update 'onload'. I found the php that works:
Code:
$formModel->_data['table___element_raw']=$newvalue;
I did this for a dbase join element, so I needed the _raw, but other element types may not need the _raw.

So one of your samples works, but you may have missed the _raw.
I know this has been a while, but I thought it might help someone stumbling on the same problem.

-Jeremy
 
Back
Top