This topic contains 2 replies, has 2 voices, and was last updated by Spurgeon 9 years, 4 months ago.
- Topic
Hi,
Greetings!
For our use case, we dont need Last Name as our input source contains name as a single field and we dont wish to waste time splitting names in thousands of records.
So we need to make the Last name field as optional.
I tried this:
1. Edited ContactBundle\Entity\Contact.php and added nullable = true to ORM Column and nillable = true to SOAP\ComplexType to annotations of $lastname in Contact class definition.
2. Edited ContactBundle\FormType\ContactType.php and set required => false.
3. executed app/console oro:entity-config:update
4. Cleared cache
While the form seems to be ok, importing data with blank lastnames doesnt work.
Could you kindly point to what am missing or need to do to make OOB mandatory fields optional?
Thanks!
regards
Spurgeon
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.