openyida 2026.10.12-beta.2 → 2026.10.12-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/create-form.js +7 -2
- package/package.json +1 -1
package/lib/app/create-form.js
CHANGED
|
@@ -826,9 +826,14 @@ function buildFieldComponent(field) {
|
|
|
826
826
|
props.linkage = '';
|
|
827
827
|
|
|
828
828
|
if (componentName === 'RadioField' || componentName === 'CheckboxField') {
|
|
829
|
-
|
|
829
|
+
// Runtime forms consume the field value, not only the option's marker.
|
|
830
|
+
const defaultOption = componentName === 'RadioField'
|
|
831
|
+
? dataSource.find((option) => option.defaultChecked === true)
|
|
832
|
+
: undefined;
|
|
833
|
+
const defaultValue = defaultOption ? defaultOption.value : '';
|
|
834
|
+
props.value = defaultValue;
|
|
830
835
|
props.valueType = 'custom';
|
|
831
|
-
props.complexValue = { complexType: 'custom', formula: '', value:
|
|
836
|
+
props.complexValue = { complexType: 'custom', formula: '', value: defaultValue };
|
|
832
837
|
props.variable = '';
|
|
833
838
|
props.formula = '';
|
|
834
839
|
}
|