This topic contains 2 replies, has 1 voice, and was last updated by Stepan Yudin 7 years, 2 months ago.
- Topic
Good day everyone!
I faced a strange problem implementing embedded form:
1) I created a custom entity
2) I created a form that implements EmbeddedFormInterface for this entity
3) I registered form as a service and tagged it with oro_embedded_form
4) I created default.yml in src\Acme\TestBundle\Resources\views\layouts\embedded_default\oro_embedded_form_submit\default.yml via following content:123456789layout:actions:- '@setBlockTheme':themes: 'AcmeTestBundle:layouts:embedded_default/oro_embedded_form_submit/form.html.twig'conditions:'@eq':- $context.embedded_form_type- 'acme.my_custom_entity.form'In fact i did everything like in Oro’s ContactUs bundle. The only thing i skipped is a Rest controller for my entity
So my new embedded form was created and available at ‘create embedded form’ page.
But when i preview this form i see that it doesnt wrapped in <form> tag. So the submit button doesnt do anything.
What did i miss?Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
https://github.com/stepansib/sf-oro-docker
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.