ssossossosso

Forums

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

Forums OroCRM OroCRM – Programming Questions Removed field from symfony form is still validated.

This topic contains 2 replies, has 2 voices, and was last updated by  czaros45 9 months ago.

  • Creator
    Topic
  • #54381

    czaros45
    Participant

    Hello,

    I’m working with CalendarEvent form. I made FormExtension and inside I used the following code:

    This should remove ‘title’ field from form and it works. However it is still validated for some reason. I get ‘This value should not be blank’ sign at the top of my template.
    I overridden validation.yml file and commented title validation rules:

    I tried clearing cache but it’s not a solution.

    Thanks for the answers in advance.
    Greetings.

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

    wgozdzicki
    Participant

    Hi,
    please, make sure you added a service with ‘form.extension’ tag and you extended the correct form. You, also, have to remove title from update.html.twig file. However, please notice that, it’s not null column in a database so you would have to create migration which remove not null flag, possibly modify entity and make sure it is not used in logic of CRM.

    Best regards
    Wiktor

    #54383

    czaros45
    Participant

    Hi,
    thank you for your response. Migrations with altering the table’s schema did the job.

    Greetings.

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
ssossossosso