You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I'm creating a form with a component that in advanced logic as javascript trigger condition that uses a var owner = data.OWNER; that depends on data.
When the form is created in angular with
Formio.createForm(
document.getElementById('formio'),
this.form,
options,
).then((form) => {
form.submission = this.formioSubmission;
}
The data arrives if i display a console.log but the console log prints multiple times undefined before gettings its value since the form is being rendered and the data is then loaded at the submission so the owner = data.OWNER; executes before the data is available.
Is there a better approach to use the data of the form or to wait until the form is rendered or is it a bug?
I'm using formio with Angular,
Then I'm creating a form with a component that in advanced logic as javascript trigger condition that uses a var owner = data.OWNER; that depends on data.
When the form is created in angular with
Formio.createForm(
document.getElementById('formio'),
this.form,
options,
).then((form) => {
form.submission = this.formioSubmission;
}
The data arrives if i display a console.log but the console log prints multiple times undefined before gettings its value since the form is being rendered and the data is then loaded at the submission so the owner = data.OWNER; executes before the data is available.
Is there a better approach to use the data of the form or to wait until the form is rendered or is it a bug?
Version/Branch
Formiojs: 4.21.4
Formio/angular: 7.0.0
Expected behavior
Getting the data values before JavaScript in logic trigger is loaded.
The text was updated successfully, but these errors were encountered: