This topic contains 2 replies, has 2 voices, and was last updated by czaros45 5 years, 5 months ago.
-
Topic
-
Hello,
I’m working with CalendarEvent form. I made FormExtension and inside I used the following code:
1$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:123456789101112131415161718192021Oro\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.
Greetings.
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.