setMode('development'); $form->startFieldset('CSS radio buttons & Checkboxes - Built using Custom CSS plugin'); $form->addRadio('vertical-radio', 'One', 1); $form->addRadio('vertical-radio', 'Two', 2, 'checked'); $form->printRadioGroup('vertical-radio', 'Vertical radio buttons', false); $form->addCheckbox('vertical-checkbox', 'First', 1); $form->addCheckbox('vertical-checkbox', 'Second', 2, 'checked'); $form->addCheckbox('vertical-checkbox', 'Third', 3); $form->printCheckboxGroup('vertical-checkbox', 'Vertical checkboxes', false); $form->addRadio('horizontal-radio', 'One', 1, 'checked'); $form->addRadio('horizontal-radio', 'Two', 2, 'checked'); $form->printRadioGroup('horizontal-radio', 'horizontal radio buttons', true); $form->addCheckbox('horizontal-checkbox', 'First', 1); $form->addCheckbox('horizontal-checkbox', 'Second', 2); $form->addCheckbox('horizontal-checkbox', 'Third', 3, 'checked'); $form->printCheckboxGroup('horizontal-checkbox', 'Horizontal checkboxes', true); $form->addRadio('change-skin', 'Grey', 'grey'); $form->addRadio('change-skin', 'Red', 'red'); $form->addRadio('change-skin', 'Green', 'green'); $form->addRadio('change-skin', 'Blue', 'blue'); $form->addRadio('change-skin', 'Yellow', 'yellow'); $form->addRadio('change-skin', 'Purple', 'purple'); $form->printRadioGroup('change-skin', 'Change Skin', false); $options = array('buttonWrapper' => '
'); $form->setOptions($options); $form->addBtn('submit', 'submit-btn', 1, 'Change Skin ', 'class=btn btn-success ladda-button, data-style=zoom-in'); $form->endFieldset(); // Custom radio & checkbox css $form->addPlugin('nice-check', 'form', 'default', ['%skin%' => $skin]); ?> Bootstrap Form with Custom CSS3 radio buttons and checkboxes - How to create PHP forms easily ============================================= */ include_once '../assets/code-preview-head.php'; ?> printIncludes('css'); ?>

Php Form Builder - Bootstrap Form
with Custom CSS3 radio buttons and checkboxes

render(); echo '

Code: $form->addPlugin(\'nice-check\', \'form\', \'default\', [\'%skin%\' => \'' . $skin . '\']);

'; ?>
printIncludes('js'); $form->printJsCode(); ?>