Skip to content

Commit

Permalink
Fix in formio.html for grids within grids
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascalsilva authored and volkotyk committed Dec 27, 2024
1 parent 92c4293 commit 8f2aad5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions camunda-formio-plugin/src/main/resources/static/formio.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
FormioUtils.eachComponent(
form.components,
function (c) {
createVariable(variableManager, c.component.key, "string");
let key = c.component !== undefined ? c.component.key : c.key;
createVariable(variableManager, key, "string");
},
true,
);
Expand Down Expand Up @@ -120,7 +121,8 @@
}

FormioUtils.eachComponent(form.components, function (c) {
const value = variableManager.variableValue(c.component.key);
let key = c.component !== undefined ? c.component.key : c.key;
const value = variableManager.variableValue(key);
if (value !== undefined && value !== null)
submission.data[c.component.key] = value;
});
Expand Down

0 comments on commit 8f2aad5

Please sign in to comment.