Self Service Forms
Last updated
Last updated
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.
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.
When Self Service Forms are enabled for your tenant, all users are able to use / submit forms.
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.
The Self Service Forms settings page allows to manage existing forms, add, edit and delete forms.
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.
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.
You can use "Update JSON Form Preview" to create a preview of the resulting form underneath the editor.
After modifying the schema, press "Submit" to save your changes. It will show an error if the syntax check fails.
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.
"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.
Arrays allow you to add multiple similar items to a list. Use the items keyword to describe the items' type etc.
Just plain text. You can prefill this using the default keyword.
To allow only certain values, you can use the enum keyword.
Using the navigation item, users can select a form to fill out and submit.
Using the navigation icon, you can review past form submissions of your users.