Add where condition in popup list view so we can customise the relate filed popup view.
In this post, we will add filter on report to field in users module.
Step 1 : Create custom/modules/Users/metadata/editviewdefs.php and write the following code into it.
array (
'name' => 'report_to_name',
'label' => 'LBL_REPORTS_TO',
'displayParams' =>
array (
'initial_filter' => '&status_advanced=Active',
),
),
Step 2 : Do Quick Repair and Rebuild from Admin panel.
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.