Skip to main content

Form

ResourceFormper workspace

Form 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​

PropertyValue
apiVersionlumen.ai/v1alpha1
kindForm
Resource nameforms
ScopeNamespaced (lives in a workspace's namespace)

Spec​

Fields under spec:. Nested fields are indented under their parent.

FieldTypeDefaultDescription
accessstring"public"Access says who may open the form. Only public exists yet.one of public, signed, members
afterobject-FormAfter is what the person sees once an answer is accepted.Rule: set a message or a redirect, not both
after.messagestring-maxLength 2000
after.redirectstring-Redirect is an https address to send the person to.maxLength 2000; pattern `^https://[^\s]+$`
descriptionstring-maxLength 2000
displayNamerequiredstring-minLength 1; maxLength 200
langstring"en"Lang is the language of the page; he is shown right to left.one of en, he
limitsobject-FormLimits closes a form on its own.
limits.closeAtstring-CloseAt is when the form stops taking answers.
limits.perDayinteger-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
openbooleantrueOpen says the form takes answers. A closed form shows as closed.
pagesrequiredlist of object-minItems 1; maxItems 20
pages[].fieldsrequiredlist of object-minItems 1; maxItems 100
pages[].fields[].helpstring-Help is a line under the question.maxLength 500
pages[].fields[].labelrequiredstring-Label is the question people see.minLength 1; maxLength 200
pages[].fields[].namerequiredstring-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[].optionslist 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[].patternstring-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[].patternMessageobject-PatternMessage is what a person is told when the answer does not match.
pages[].fields[].patternMessage.enrequiredstring-minLength 1; maxLength 500
pages[].fields[].patternMessage.hestring-maxLength 500
pages[].fields[].placeholderstring-maxLength 200
pages[].fields[].prefillobject-Prefill fills the field from another field as the person types, until they edit it themselves.
pages[].fields[].prefill.formatrequiredstring-Format is how the source is turned into this field's value.one of slug
pages[].fields[].prefill.fromrequiredstring-From is the name of another field of the form.minLength 1; maxLength 63
pages[].fields[].requiredboolean-
pages[].fields[].showIfobject-ShowIf makes the field conditional (reserved).
pages[].fields[].showIf.equalsstring-Equals is the value that shows the field.maxLength 200
pages[].fields[].showIf.fieldrequiredstring-Field is the name of another field of the form.minLength 1; maxLength 63
pages[].fields[].typerequiredstring-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[].titlestring-maxLength 200
slugstring-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
targetrequiredobject-FormTarget is the table a form's answers are added to.
target.baserequiredstring-Base is the SheetBase the table belongs to.minLength 1; maxLength 63
target.sheetrequiredstring-Sheet is the Sheet (table) a submission adds a row to.minLength 1; maxLength 63
workspaceRequestobject-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.displayNameFieldstring-DisplayNameField is the form field holding the name people read, such as the company; the workspace name is used when empty.maxLength 63
workspaceRequest.fieldsobject-Fields names the form fields whose answers are kept on the request for the platform admins who decide it.
workspaceRequest.fields.teamSizestring-maxLength 63
workspaceRequest.fields.useCasestring-maxLength 63
workspaceRequest.nameFieldrequiredstring-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.

FieldTypeDefaultDescription
conditionslist of object-
conditions[].lastTransitionTimerequiredstring-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[].messagerequiredstring-message is a human readable message indicating details about the transition. This may be an empty string.maxLength 32768
conditions[].observedGenerationinteger-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[].reasonrequiredstring-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[].statusrequiredstring-status of the condition, one of True, False, Unknown.one of True, False, Unknown
conditions[].typerequiredstring-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​

ColumnTypeJSONPath
Titlestring.spec.displayName
Slugstring.spec.slug
Tablestring.spec.target.sheet
Openboolean.spec.open
Agedate.metadata.creationTimestamp