Self Service Forms
Overview
You can use Self Service Forms to collect structured data from users. This can be used to let users report incidents or indicate changes, like the need for a new workplace setup in an office.
"Self Service Forms" is an optional feature that can be enabled for your tenant by RealmJoin Support. If not enabled, you can still enter/prepare forms in the settings page, but users will not be able to see/use self service forms.
We will use a workflow to "indicate a new pet" as an example.
![](https://docs.realmjoin.com/~gitbook/image?url=https%3A%2F%2F2868468309-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MkrcM7cKOpXKri1kVrh%252Fuploads%252FsHMLCDOPE9VpfxI0H3Uh%252Fimage.png%3Falt%3Dmedia%26token%3Dea570eab-d14a-450c-8959-dd18b3a2d50e&width=768&dpr=4&quality=100&sign=ede5a4ba&sv=1)
Using Forms
Using the navigation item, users can select a form to fill out and submit.
![](https://docs.realmjoin.com/~gitbook/image?url=https%3A%2F%2F2868468309-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MkrcM7cKOpXKri1kVrh%252Fuploads%252FPUnJnLhYCdcgI9aTfJew%252Fimage.png%3Falt%3Dmedia%26token%3D6455eb83-923f-4a39-b871-43d73f2d43c5&width=768&dpr=4&quality=100&sign=d60d4368&sv=1)
When a user fills out and submits a form, its contents will be sent via email to the recipient given in the form's definition. The email will be sent via RealmJoin's infrastructure and will not originate from your company's email addresses.
![](https://docs.realmjoin.com/~gitbook/image?url=https%3A%2F%2F2868468309-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MkrcM7cKOpXKri1kVrh%252Fuploads%252FOk30wlZKDMEe3MWvzxS1%252Fimage.png%3Falt%3Dmedia%26token%3Dc40cb2ea-113c-4b4f-9da0-ff085a808b65&width=768&dpr=4&quality=100&sign=6eef2169&sv=1)
When Self Service Forms are enabled for your tenant, all users are able to use / submit forms.
Review Submissions
Using the navigation icon, you can review past form submissions of your users.
![](https://docs.realmjoin.com/~gitbook/image?url=https%3A%2F%2F2868468309-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MkrcM7cKOpXKri1kVrh%252Fuploads%252FhW7xAk19PilNZOMOGodf%252Fimage.png%3Falt%3Dmedia%26token%3Dadc9d2ba-359a-4fa1-b272-996d354c6b4f&width=768&dpr=4&quality=100&sign=f9139807&sv=1)
You can search for submissions by sending username and by form name, but not by fields in the form submission.
Click "View" to see the filled form data. The view is read only.
Settings Page
The Self Service Forms settings page allows to manage existing forms, add, edit and delete forms.
Forms List on the Settings Page
![](https://docs.realmjoin.com/~gitbook/image?url=https%3A%2F%2F2868468309-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MkrcM7cKOpXKri1kVrh%252Fuploads%252FYfij5VCCe1WNBYeIe1Jl%252Fimage.png%3Falt%3Dmedia%26token%3De6f11b7c-8a3e-42ba-aeaf-57f6b5fa8b08&width=768&dpr=4&quality=100&sign=9f44398&sv=1)
Use "New Form" or "Edit" to describe the form using JSON Schema. This defines which fields need to be entered and what values are valid. The UI offers a syntax checking editor and a preview of the resulting form.
The schema will be used to dynamically create a form for the user. Basically, use the schema not only to describe the desired data but also to implicitly create the form's UI.
Schema Editor
Above the editor there are two fields. Use the left field to give your form a descriptive name. Use the right field to name the email address of the recipient of the user submited data.
![](https://docs.realmjoin.com/~gitbook/image?url=https%3A%2F%2F2868468309-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MkrcM7cKOpXKri1kVrh%252Fuploads%252FlDKKa8gI37FWDapkH2xh%252Fimage.png%3Falt%3Dmedia%26token%3Dd13dbe12-150a-4503-ba1c-50d637962498&width=768&dpr=4&quality=100&sign=3a7e5c10&sv=1)
You can use "Update JSON Form Preview" to create a preview of the resulting form underneath the editor.
![](https://docs.realmjoin.com/~gitbook/image?url=https%3A%2F%2F2868468309-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MkrcM7cKOpXKri1kVrh%252Fuploads%252FPqMhyTDusXhcaIcafvFu%252Fimage.png%3Falt%3Dmedia%26token%3Df04e8882-1d3c-4bd4-a032-2af26f763e59&width=768&dpr=4&quality=100&sign=1c924472&sv=1)
After modifying the schema, press "Submit" to save your changes. It will show an error if the syntax check fails.
JSON Schema
The usage of JSON Schema is out of scope of this document. You can use online schema generators (like this one) to simplify the process.
To give a starting point at least, let us examine the schema from our example
Every JSON Schema consists of objects. Every object has to at least have a type and a name.
Types
Object
"Complex" objects containing other child-objects should use the object type. In our example the root node "Person" of the schema is of this type.
You can define mandatory fields using the required keyword. These fields have to be defined in the schema as well.
Use properties to describe the features of each field needed, this includes giving a type and a name.
Array
Arrays allow you to add multiple similar items to a list. Use the items keyword to describe the items' type etc.
String
Just plain text. You can prefill this using the default keyword.
To allow only certain values, you can use the enum keyword.
Last updated