Resource forms and form data
A resource form collects information when someone requests the resource, such as a business reason or a deployment environment. Form answers belong to that request. They do not select access: the Grants a requester asks for are a separate part of the request, covered in Catalog visibility and requestable Grants.
A form is optional. A resource without one asks requesters nothing extra.
Build the form
- Open the resource and select Form.
- Select Create form, then Add field.
- Pick an element. Inputs collect an answer, and Display elements only show text.
- Select the field to configure it.
- Select Save form. The Save button in the page header also saves it.
| Group | Elements |
|---|---|
| Inputs | Input, Textarea, Justification, Select, Radio, Toggle Group, Checkbox, Switch, Slider, Date Picker, User Picker, Group Picker, Resource Picker, File Upload |
| Display | Header, Paragraph, Divider |
Justification is a text area that starts with a label and help text asking why the access is needed. A File Upload asks for its Accepted extensions when you add it, and can limit Maximum files and Maximum file size.
Preview shows the form with the same renderer requesters see. Schema shows the JSON saved on the resource.
Field settings
| Setting | What it does |
|---|---|
| Label | The question the requester sees. |
| Field name | The key the answer is stored under. It must start with a letter or underscore and contain only letters, numbers, and underscores. |
| Placeholder | Hint text inside an empty input. |
| Description | Help text under the field. |
| Required field | The request cannot be submitted without an answer. For a file upload, at least one file. |
| Disabled | Shows the field without letting the requester change it. |
Other settings depend on the element:
- Input type for an Input
- Selection mode for a Toggle Group
- Minimum, Maximum, and Step for a Slider
- Heading level for a Header
- Content for a Header or Paragraph
Choose field names with care if anything reads them. A function or a provisioning mapping refers to an answer by its field name, so renaming a field breaks that reference. The builder marks a field that a provisioning mapping reads, with the note "A provisioning mapping reads this field. Renaming it will break that mapping."
Choose options for a field
For a dropdown, radio group or toggle group, the Form Editor's Options source control offers:
- Define here: options belong to this field. Use this for a question specific to one form.
- A named choice list: options are shared with other fields and identity attributes. Changes to that list apply to every form using it.
To reuse an inline field, enter a New shared list name and select Save as choice list. The list is created when you save the form. Discarding the form or a failed save does not leave a new list. To make a shared field independent, choose Define here. Owlie copies its active options into the field.
Attaching a shared list requires permission to read choice lists and edit the resource. Creating or changing a list also requires permission to manage choice lists. People completing the form can see its options without general access to the list catalog.
Limits
A resource form supports at most 20 elements. Shared options count toward the expanded form size limit, including repeated use of a list in different fields. If an edit exceeds the limit or leaves a choice field with no active options, shorten the form or restore an active choice before saving.
One request's answers for a resource can total at most 128 KB.
What a request stores
When a request is submitted, Owlie validates the answers against the form. It refuses the request if:
- a required answer is missing
- a choice is not one of the field's options
- a picker names a user, group, or resource that does not exist
If a choice was retired while the form was open, select an available choice and submit again.
Owlie then stores two things on the request item:
- The answers, keyed by field name. A picker answer is stored with the display details of what was picked, such as a user's name and email, so later readers do not need to look it up. A file upload is stored as a list of files with their names and sizes.
- A copy of the form as the requester saw it.
Because the request keeps its own copy, editing or removing the form later does not change requests already submitted. Retiring a choice or renaming a label does not rewrite an accepted request's answers either. Remove form stops collecting the fields for new requests and keeps existing submissions.
Where the answers are used
| Place | How the answers arrive |
|---|---|
| Approvers | The request shows the submitted form with its answers. |
| Approval functions | The function receives the answers and the form copy, so it can route or decide on them. For example, it can add a reviewer only when environment is prod. |
| Manual fulfillment | The fulfillment ticket shows the submitted form. |
| Fulfillment functions | The answers and the form copy are part of the function's input. |
| Connector provisioning | A baseline attribute mapping can read an answer in its expression as formData. followed by the field name, for example formData.license. |
A mapping that reads a field the form no longer has does not block saving. Owlie warns when you save the profile, and at provisioning time the expression reads an empty value. Before you rename or remove a field, check the resource's provisioning mappings.
A Bundle's form answers stay on the Bundle's request item. They are not passed to its components.
For the function inputs, see the function programming reference. For how forms appear to requesters, see Configure request forms and access selections.