Hi!
I'm searching for help with checkbox customization.
Now by default Grav displays checkboxes with this markup:
<div class="form-field form-group ">
<div class="form-label-wrapper"><label class="form-label">3</label></div>
<div class="form-data" data-grav-field="text" data-grav-disabled="" data-grav-default="["option1","option2"]">
<div class="form-input-wrapper ">
<input name="data[3]" value="option1,option2" type="text" class="form-input custom-checkboxes ">
</div>
</div>
</div>
The default code is used:
my_field:
type: checkboxes
label: false
default:
- option1
- option2
options:
option1: Option 1
option2: Option 2
classes: custom-checkboxes
While I need completely different markup:
<div class="fields-group-head">
<h3>Pre-heading</h3>
</div>
<div class="fields-group-controls custom-checkboxes">
<div class="type-selection type-selection form-group col-md-4 col-sm-12" data-delay="3">
<input type="checkbox" name="planner_project_type_checkbox" id="bio" value="Text value ONE">
<label for="web" class="icon-web">Web OPTION</label>
</div>
<div class="type-selection type-selection form-group col-md-4 col-sm-12" data-delay="4">
<input type="checkbox" name="planner_project_type_checkbox" id="geo" value="Text value TWO">
<label for="graphic" class="icon-graphic">graphic option</label>
</div>
</div>
How this could be achieved?