OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums 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 7 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36428

    Stepan Yudin
    Participant

    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
    https://github.com/stepansib/sf-oro-docker

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

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top