Skip to content

Commit a1a99ec

Browse files
committed
v 1.2.4
1 parent aa56c42 commit a1a99ec

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

elements/rfformradio_item/element.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"value": {
1515
"label": "Value",
1616
"type": "Text"
17+
},
18+
"radio_checked": {
19+
"label": "Checked",
20+
"type": "checkbox",
21+
"text": "Set as checked"
1722
}
1823
},
1924
"fieldset": {
@@ -24,9 +29,11 @@
2429
"title": "General",
2530
"fields": [
2631
"label",
27-
"value"
32+
"value",
33+
"radio_checked"
2834
]
2935
}
36+
3037
]
3138
}
3239
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<label class="uk-flex uk-flex-middle"><input class="uk-radio rf-radio" type="radio" name="<?php echo $element['field_name'] ?>" value="<?php echo empty($props['value'])?$i:$props['value'] ?>" <?php echo $element['radio_required']?"required": ""; ?>> <div class="uk-margin-small-left"><?php echo $props['label'] ?></div></label>
1+
<label class="uk-flex uk-flex-middle"><input class="uk-radio rf-radio" type="radio" name="<?php echo $element['field_name'] ?>" value="<?php echo empty($props['value'])?$i:$props['value'] ?>" <?php echo $element['radio_required']?"required": ""; ?><?php echo $props['radio_checked']?" checked":"" ?>> <div class="uk-margin-small-left"><?php echo $props['label'] ?></div></label>

0 commit comments

Comments
 (0)