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
Copy file name to clipboardExpand all lines: docs/features/code-based/CUSTOM_SERVICES.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,3 +44,55 @@ This method is invoked for every page request.
44
44
45
45
Only when the `formMetadata` indicates that the definition has changed is a call to `getFormDefinition` is made.
46
46
The response from this can be quite big as it contains the entire form definition.
47
+
48
+
## Loading forms from files
49
+
50
+
To create a `formsService` from form config files that live on disk, you can use the `FileFormService` class.
51
+
Form definition config files can be either `.json` or `.yaml`.
52
+
53
+
Once created and files have been loaded using the `addForm` method,
54
+
call the `toFormsService` method to return a `FormService` compliant interface which can be passed in to the `services` setting of the [plugin options](/forms-engine-plugin/PLUGIN_OPTIONS.md).
0 commit comments