The "utils" option allows you to define custom global utility functions. One use of a custom utility function is for populating a dropdown from the database. For example, you may wish to have a custom field on a contract that tracks what product is associated to it. There are two main steps to do this; define the custom function and then tell the custom field to pull from the function.
Using the module manifest organization mentioned in a previous post (https://www.sugaroutfitters.com/blog/organizing-files-in-a-module-zip) we first create the utils function in contract_products.php:
Now we tell our custom field to pull from this new function:
Finally, we add these to the manifest so that it will get installed via the Module Installer:
What other purposes have you used custom utils for?
Get more accurate addresses and speed up data-entry time. Auto-suggests addresses as you start to type. Auto-fills street, city, state, country, and zip code reducing address entry time by 90%. Works world-wide. Simplified data entry for contacts, accounts, and leads.
CUSTOMER PORTAL FOR SUITECRM
Customer Portal Customised by Fynsis empowers speedier time to determination and diminishes general caseload, by enabling people to make cases, refresh their record data, look through the information base, and track bugs to a determination.
Dashboard Copy Manager
Administrators can copy dashboards from any user to any number of users, teams, or roles. Save time logging in as individual users to set up their dashboards.
- Show more addons