Previously, we covered how to Add Your Own Links to the SugarCRM Admin Option Page. This post will cover how to save configurations on that option page to the database using SugarCRM's Administration class.
Given this simplified form with no formatting yet applied:
Once the form is submitted we can process the form in our SaveConfig.php:
To retrieve that setting:
If you would rather save it to the $sugar_config instead of the database you can use the Configurator class:
An integrated, intelligent web chat tool for SugarCRM. Embed this chat tool into your website and manage your conversations directly from SugarCRM. See your web visitors, web visit history, and chat history as you are working with a visitor.
Customer Map Locator for Sugar
Locate your clients and prospects on a contextualized map. Visually identify clients by type icon. Get directions to help plan out your route.
CM & Sugar Sequencing Add-on
Need to set up a numbering system to track your records? Define and add a unique identifier field to any SugarCRM record. Option rich so that you can define the alphanumeric format that you need. Start tracking your Quote, Cases, Accounts and any other module today.
- Show more addons