alek
Get data from custom form field
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);
11 replies
How to set (this) value for an action? What about form builder field?
Edit: Figured this out. If you pass the name of the component, even if you have multiple, it will only affect the group you are working in. So having multiple hero components for instance, will only change the one you are invoking.
It is hurting my brain a bit but it works.
4 replies