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: