Form
Resource
Formper workspaceForm is a page anyone with the link can fill in; every answer is added as a row to the table it targets.
At a glance
| Property | Value |
|---|---|
| apiVersion | lumen.ai/v1alpha1 |
| kind | Form |
| Resource name | forms |
| Scope | Namespaced (lives in a workspace's namespace) |
Spec
Fields under spec:. Nested fields are indented under their parent.
| Field | Type | Default | Description |
|---|---|---|---|
access | string | "public" | Access says who may open the form. Only public exists yet.one of public, signed, members |
after | object | - | FormAfter is what the person sees once an answer is accepted.Rule: set a message or a redirect, not both |
after.message | string | - | maxLength 2000 |
after.redirect | string | - | Redirect is an https address to send the person to.maxLength 2000; pattern `^https://[^\s]+$` |
description | string | - | maxLength 2000 |
displayNamerequired | string | - | minLength 1; maxLength 200 |
lang | string | "en" | Lang is the language of the page; he is shown right to left.one of en, he |
limits | object | - | FormLimits closes a form on its own. |
limits.closeAt | string | - | CloseAt is when the form stops taking answers. |
limits.perDay | integer | - | PerDay is the most submissions a day (UTC) the form takes; the form reads as closed for the rest of the day.minimum 1; maximum 1000000 |
open | boolean | true | Open says the form takes answers. A closed form shows as closed. |
pagesrequired | list of object | - | minItems 1; maxItems 20 |
pages[].fieldsrequired | list of object | - | minItems 1; maxItems 100 |
pages[].fields[].help | string | - | Help is a line under the question.maxLength 500 |
pages[].fields[].labelrequired | string | - | Label is the question people see.minLength 1; maxLength 200 |
pages[].fields[].namerequired | string | - | Name is the target column the answer is written to.minLength 1; maxLength 63; pattern `^[a-z][a-z0-9]*([_-][a-z0-9]+)*$` |
pages[].fields[].options | list of string | - | Options are the choices of a select or multiselect field. Unset, they are the target column's own options.maxItems 100 |
pages[].fields[].pattern | string | - | Pattern is a regular expression (RE2, also valid in JavaScript) the whole answer must match, checked by the page and again by the server. Text-like fields only.maxLength 300 |
pages[].fields[].patternMessage | object | - | PatternMessage is what a person is told when the answer does not match. |
pages[].fields[].patternMessage.enrequired | string | - | minLength 1; maxLength 500 |
pages[].fields[].patternMessage.he | string | - | maxLength 500 |
pages[].fields[].placeholder | string | - | maxLength 200 |
pages[].fields[].prefill | object | - | Prefill fills the field from another field as the person types, until they edit it themselves. |
pages[].fields[].prefill.formatrequired | string | - | Format is how the source is turned into this field's value.one of slug |
pages[].fields[].prefill.fromrequired | string | - | From is the name of another field of the form.minLength 1; maxLength 63 |
pages[].fields[].required | boolean | - | |
pages[].fields[].showIf | object | - | ShowIf makes the field conditional (reserved). |
pages[].fields[].showIf.equals | string | - | Equals is the value that shows the field.maxLength 200 |
pages[].fields[].showIf.fieldrequired | string | - | Field is the name of another field of the form.minLength 1; maxLength 63 |
pages[].fields[].typerequired | string | - | PublicFormFieldType is what a form field asks for. Each type is stored in the target column's own type. file is reserved for uploads (a later slice): the webhook refuses it until they exist, and it is listed so adding it is not a change to this enum.one of text, longtext, number, date, select, multiselect, checkbox, email, phone, file |
pages[].title | string | - | maxLength 200 |
slug | string | - | Slug is the form's address, app.<host>/f/<slug>, unique in the installation. Generated when empty (a readable prefix and a random tail) and fixed after: changing it would break the links already shared.maxLength 63 |
targetrequired | object | - | FormTarget is the table a form's answers are added to. |
target.baserequired | string | - | Base is the SheetBase the table belongs to.minLength 1; maxLength 63 |
target.sheetrequired | string | - | Sheet is the Sheet (table) a submission adds a row to.minLength 1; maxLength 63 |
workspaceRequest | object | - | WorkspaceRequest makes sending the form a request for a workspace by a verified person. The submission then needs the Lumen session of the person whose email the form carries. |
workspaceRequest.displayNameField | string | - | DisplayNameField is the form field holding the name people read, such as the company; the workspace name is used when empty.maxLength 63 |
workspaceRequest.fields | object | - | Fields names the form fields whose answers are kept on the request for the platform admins who decide it. |
workspaceRequest.fields.teamSize | string | - | maxLength 63 |
workspaceRequest.fields.useCase | string | - | maxLength 63 |
workspaceRequest.nameFieldrequired | string | - | NameField is the form field holding the workspace name.minLength 1; maxLength 63 |
Status
Written by Lumen; do not set it. Only the phase and the conditions are described here.
| Field | Type | Default | Description |
|---|---|---|---|
conditions | list of object | - | |
conditions[].lastTransitionTimerequired | string | - | lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
conditions[].messagerequired | string | - | message is a human readable message indicating details about the transition. This may be an empty string.maxLength 32768 |
conditions[].observedGeneration | integer | - | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.minimum 0 |
conditions[].reasonrequired | string | - | reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.minLength 1; maxLength 1024; pattern `^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$` |
conditions[].statusrequired | string | - | status of the condition, one of True, False, Unknown.one of True, False, Unknown |
conditions[].typerequired | string | - | type of condition in CamelCase or in foo.example.com/CamelCase.maxLength 316; pattern `^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` |
kubectl columns
| Column | Type | JSONPath |
|---|---|---|
| Title | string | .spec.displayName |
| Slug | string | .spec.slug |
| Table | string | .spec.target.sheet |
| Open | boolean | .spec.open |
| Age | date | .metadata.creationTimestamp |
Was this page helpful?