30
January

0 Comments | 0 Shares | Urdhva Tech

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

To extend vardefs we need to create a file.

custom/Extension/modules/<module_name>/Ext/Vardefs/<anyname>.php

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

Now go to Admin > Repair > Quick Repair and Rebuild. 
You are done!

Feel free to leave comments.
Download attachments:
Comments
  • No Comments Found.
Post your comment