How to get the saved value form my custom form field type in joomla? <p>I have created my custom form field for a module.However, it work will but when ever i get back to the module i don't know what is the previous value or the saved value, because i didn't make it selected there. </p> <pre><code>&lt;?php // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.form.formfield'); class JFormFieldSlidercategory extends JFormField { protected $type = 'Slidercategory'; // getLabel() left out public function getInput() { $db = JFactory::getDBO(); $query = $db-&gt;getQuery(true); $query-&gt;select('id,title'); $query-&gt;from('#__h2mslider_categories'); $db-&gt;setQuery((string)$query); $messages = $db-&gt;loadObjectList(); $options =''; if ($messages) { foreach($messages as $message) { $options .= '&lt;option value="'.$message-&gt;id.'" &gt;'.$message-&gt;title.'&lt;/option&gt;'; } } $options = '&lt;select id="'.$this-&gt;id.'" name="'.$this-&gt;name.'"&gt;'. '&lt;option value="0" &gt;--select a category--&lt;/option&gt;'. $options. '&lt;/select&gt;'; return $options ; } } </code></pre> <p>I need the function that return me the saved value.</p>