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
|`src`| url || The url of the form definition. This is commonly from a form.io server. When using src, the form will automatically submit the data to that url as well. |
107
-
|`url`| url || The url of the form definition. The form will not be loaded from this url and the submission will not be saved here either. This is used for file upload, oauth and other components or actions that need to know where the server is. Use this in connection with `form`|
108
-
|`form`| object || Instead of loading a form from the `src` url, you can preload the form definition and pass it in with the `form` prop. You should also set `url` if you are using any advanced components like file upload or oauth. |
109
-
|`submission`| object || Submission data to fill the form. You can either load a previous submission or create a submission with some pre-filled data. If you do not provide a submissions the form will initialize an empty submission using default values from the form. |
110
-
|`options`| object || an options object that can pass options to the formio.js Form that is rendered. You can set options such as `readOnly`, `noAlerts` or `hide`. There are [many options to be found in the formio.js library](https://github.com/formio/formio.js/wiki/Form-Renderer#options). |
111
-
112
-
#### Event Props
113
-
114
-
You can respond to various events in the form. Simply pass in a prop with a function for one of these events.
|`onAsyncSubmit`|`submission`: object | When the submit button is pressed and the submission has started. Use this event if you submit data to external service. |
119
-
|`onSubmit`|`submission`: object | When the submit button is pressed and the submission has started. If `src` is not provided, this will be the final submit event. |
120
-
|`onSubmitDone`|`submission`: object | When the submission has successfully been made to the server. This will only fire if `src` is set. |
121
-
|`onChange`|`submission`: object, `submission.changed`: object of what changed, `submission.isValid`: boolean - if the submission passes validations. | A value in the submission has changed. |
122
-
|`onError`|`errors`: array or string or boolean | Called when an error occurs during submission such as a validation issue. |
123
-
|`onRender`|| Triggers when the form is finished rendering. |
124
-
|`onCustomEvent`| { `type`: string - event type, `component`: object - triggering component, `data`: object - data for component, `event`: string - raw event } | Event that is triggered from a button configured with "Event" type. |
125
-
|`onPrevPage`| { `page`: integer - new page number, `submission`: object - submission data } | Triggered for wizards when "Previous" button is pressed |
126
-
|`onNextPage`| { `page`: integer - new page number, `submission`: object - submission data } | Triggered for wizards when "Next" button is pressed |
127
-
|`onFormReady`|`formInstance`: Webform/Wizard - form class instance | Called when the form gets ready state |
|`form`| object || This is the form definition object. It should at least have a `display` property set to form, wizard or pdf. |
206
-
|`options`| object || an options object that can pass options to the formio.js Form that is rendered. There are many options to be found in the formio.js library. |
0 commit comments