Add initial support for default values in checkboxes customfields

This commit is contained in:
Ivan Nieto Vivanco 2022-02-07 22:17:40 -06:00
parent 1a31231569
commit 796a0ebdaa

View file

@ -45,6 +45,7 @@
<div class="col-sm-12 col-lg-6">
<input v-if="field.type == 'text'" class="form-control m-b-xs" type="text" :value="getValue(field)" :id="'default-value' + field.id" :name="'default_values[' + field.id + ']'">
<textarea v-if="field.type == 'textarea'" class="form-control" :value="getValue(field)" :id="'default-value' + field.id" :name="'default_values[' + field.id + ']'"></textarea><br>
<input v-if="field.type == 'checkbox'" v-for="field_value in field.field_values_array" class="" type="checkbox" :value="field_value">
<select v-if="field.type == 'listbox'" class="form-control m-b-xs" :name="'default_values[' + field.id + ']'">
<option value=""></option>