Hide Email Icon in List View for Merciglobal Cloud ERPΒΆ
This documentation explains how to hide the Email icon from the List View in Merciglobal Cloud ERP by adding a small JavaScript function to the project_core.js
file.
PurposeΒΆ
To improve the user interface by hiding unnecessary or unused icons in the list view. Specifically, this method hides the Email icon using a simple conditional function.
File LocationΒΆ
Ensure the following function is added inside the project_core.js
file in your Merciglobal Cloud ERP project.
JavaScript FunctionΒΆ
/**
* Function to control visibility of icons in list view
* Currently hides the EMAIL icon
*
* @param {string} icon - Icon identifier
* @returns {boolean} - Whether to show the icon or not
*/
function trn_saleinv_showicon(icon = '') {
if (icon.toUpperCase() === 'EMAIL') {
return false; // β Hides the EMAIL icon
}
return true; // β
Show all other icons
}
How It WorksΒΆ
- π Checks if the icon type is
EMAIL
- π Returns
false
if it is, which tells the system not to render the icon - β
Returns
true
for all other icons
Use CaseΒΆ
Perfect for modules where emailing from the list view is not required, or to simplify the interface for specific user roles.
π¨βπ» AudienceΒΆ
- π§βπΌ Sales Team: Cleaner UI with only relevant icons
- π§βπ§ Developers: Easy customization point
- π§βπ» Merci Internal Team: Improves UX with minimal effort
Additional NotesΒΆ
- This function can be expanded to hide other icons as needed.
- Useful for creating a minimalistic and role-specific interface.
π Next Steps:
- Deploy the updated project_core.js
- Test on different modules to verify icon behavior
- Extend logic if role-based hiding is required
For more customizations or support, contact the Merciglobal ERP Development Team.
Happy Customizing! π―