Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCRM OroCRM – Programming Questions UserTypeExtension: buildForm Not Called

This topic contains 2 replies, has 2 voices, and was last updated by  zhex900 1 year, 4 months ago.

  • Creator
  • #25409



    I am trying to add EventListener to UserType form. But this extension is not called. I don’t know why. I have added DependencyInjection. My custom validation group is working. Only buildForm is not called.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #25410

    Dmitriy Pasechnik

    Hello zhex900
    Looks like the code is OK. It should work.
    How did you find out that ‘buildForm’ isnt called? I see that you added a listener on ‘submit’ event, so ‘file_put_contents’ should be called only when form is fully submitted, not when it just created.

    Also, if you want to do something with form data, when form is submitted – its better to use ‘FormEvents::PRE_SUBMIT’ event



    I found the problem. In DependencyInjection I gave the wrong name to the Extension file.

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

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No