The following code in an Admin class
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper->add('myButton', 'button');
}
throws this error:
The options "label_render", "sonata_field_description" do not exist. Defined options are: "attr", "auto_initialize", "block_name", "disabled", "label", "label_format", "translation_domain".
Doesn't seem to matter what options you specify
What should this button do?
I would expect it to create a ButtonType field
Same error with Sonata 3.23.0
I'm trying to create a ButtonType field and I'm getting this
The options "label_render", "property_path", "sonata_field_description" do not exist. Defined options are: "attr", "auto_initialize", "block_name", "disabled", "label", "label_format", "translation_domain"
AFAIK we don't support unmapped form fields. Maybe someone could create a PR with this feature?
It would be nice to support this feature. It's confusing that you can use some Symfony FormTypes and some not, mapped or not.
Feel free to provide a PR @lopezator 馃憤
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Feel free to provide a PR @lopezator 馃憤