I want to add single check box in my extension like below.
Please check my system.xml
<config>
<sections>
<mymodule>
<groups>
<general translate="label" module="paygate">
<label>General settings</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<visible_on_frontend translate="label">
<label>Visible on Front-End</label>
<frontend_type>checkbox</frontend_type>
<frontend_model>mymodule/system_config_form_frontendavail</frontend_model>
<sort_order>22</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</visible_on_frontend>
</fields>
</general>
</groups>
</mymodule>
</sections>
</config>
Frontendavail.php
<?php
class Namspace_Mymodule_Block_System_Config_Form_Frontendavail extends Mage_Adminhtml_Block_System_Config_Form_Field
{
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
{
$html = "
<input type='checkbox' class='required-entry' name='terms' value='1'>";
return $html;
}
}
After doing this check box is display but nothing is happens. Not saving data in database.