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:

Like this post?

We'll send you an email once a month with the latest posts.

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.