Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums OroPlatform OroPlatform – How do I? Questions How to create custom embedded form properly?

This topic contains 2 replies, has 1 voice, and was last updated by Stepan Yudin Stepan Yudin 1 year ago.

  • Creator
  • #62835
    Stepan Yudin
    Stepan Yudin

    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:

    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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.