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?
Stay on top of your open opportunities and improve your sales conversion rate. Delivered right to your inbox, you will always be equipped with the latest list of opportunities on hand.
OpenCart Integration with SuiteCRM
SuiteCRM Opencart Integration is seamless and real-time, no dependency on admin to run a Cron job to pull or push data. “Once the information is keyed in one system it will push data to other systems instantaneously”
Drawing and Signature Field
Need a way to have customers sign a receipt or for project managers to draw a mock-up in real time right inside of Sugar? Add drawing fields to any SugarCRM module right from within Studio. Especially great when out in the field using a tablet. Signatures or drawings on the spot.
- Show more addons