I’m working with CalendarEvent form. I made FormExtension and inside I used the following code:PHP1$builder->remove('title')
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:YAML123456789101112131415161718192021Oro\Bundle\CalendarBundle\Entity\CalendarEvent:constraints:- Oro\Bundle\CalendarBundle\Validator\Constraints\RecurringCalendarEventExceptionConstraint: ~properties:# title:# - NotBlank: ~# - Length:# max: 255start:- DateTime: ~- NotBlank: ~- Oro\Bundle\CalendarBundle\Validator\Constraints\DateEarlierThan: endend:- DateTime: ~- NotBlank: ~attendees:- Valid: ~recurrence:- Valid: ~reminders:- Valid: ~
I tried clearing cache but it’s not a solution.
Thanks for the answers in advance.
You must be logged in to reply to this topic.