Value of an Element in PHP

HI,
I think I missing something in the logic of naming in Fabriks.
if there is a documentation which explains clearly, feel free to point it to me. I foudn this one : http://fabrikar.com/forums/index.php?wiki/php-form-plugin/
for my need :
I need in PHP validation , before submiting to check a value.
Context :
I have a form, which contains 1 group (Addpayee).
This group contains several elements ( with one named "requiredlvl").
this element, is a display element, and I want to check its value.

My understanding is that, during PHP validation, I should get the value thanks to

$formModel->formData['AddPayee___requiredlvl']

but obviously nothing....
Thanks for your insights
 
mmm... Thanks for the link , I had a look as well.

I tried previously a " var_dump($formModel->formData["AddPayee___requiredlvl"]" , without success, no output at all. That's why I though I was missing something.

Just to be sure, if you see any trick in my code :

JFactory::getApplication()->enqueueMessage('val: ' . var_dump($formModel->formData['AddPayee___requiredlvl']), 'error');


i'm getting the message in the message queue and displayed , but no var_dump ( nor value with _raw )
 
I don't know.
Try
var_dump($formModel->formData['AddPayee___requiredlvl']);exit;
resp. to see all
var_dump($formModel->formData);exit;
 
Finally found the issue. For some reasons ( do not really get it but never mind) , vardump are not displayed with my current template.
I was looping to the var_dump without "exit" being sure of my code ...
Final issue is that the group when I created it was named "test", so ... the right variable value was :
$formModel->formData['test___requiredlvl']
Thx for your help !
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top