Get data from custom form field
From my custom form field how can get data from another field. I try $get but not working
8 Replies
From what I understand, $get is meant to be used in the form or table action, not in the component itself.
Try using the state or form call here instead to dig for what you need. Can't test this right now but play around with:
$myState = $this->getState(); // This state
$myForm = $this->getForm();
$value =$myForm->getState('blueprint.oferta_comercial.productes');
dd($myState, $value);
Not working, strange $this->getState(); return null on this field
What about $myForm->getState() is this returning anything?
are you trying to get the data in the view file like this?
GetForm function no exist
Great, this work
How can i see detailed docs about this method or related method like this sir?
I don't think that it is documented, but you can check it in the php api doc
thanks sirr i need thissss