Make field Importable Required

How to make importable required in custom field?

It will be done by one step only! You need to extend vardefs to make importable required.
Let’s see how

Step 1 : To extend vardefs we need to create a file. custom/Extension/modules/<desired_module>/Ext/Vardefs/<anyname>.php

<?php
$dictionary["<MODULE_OBJECT_NAME>"]["fields"]["<FIELD_NAME>"]["importable"]='required';

Step 2 : Now go to Admin > Repair > Quick Repair and Rebuild.

Note :

Here, <desired_module> means the module name you see in the URL, for example, Contacts, Leads, etc.
Here, <anyname> means the any file name for example, custom_fields, search_fields, etc.
Here, <MODULE_OBJECT_NAME> means module object for example Account,Contact, etc.

Hope you find this blog post helpful.

Feel free to add comments and queries, that helps us to improve the quality of posts.

You can contact us at [email protected]

Thank you.

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *