Guides
Form Modes
Joyfill forms can operate in two modes that control whether users can edit fields.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
enum class Mode {
fill, readonly
}
Form(
editor = rememberDocumentEditor(json),
mode = Mode.readonly // default is Mode.fill
)
| Feature | Mode.fill (Default) | Mode.readonly |
|---|---|---|
| Description | Users can interact with and edit all form fields | Users can view the form but cannot make any changes |
| Field editing | Enabled | Disabled |
| Events | Fire normally (onFieldChange, onFocus, onBlur, etc.) | Don’t fire |
| Upload/capture actions | Enabled | Disabled |
| Field values | Can be changed | Visible but locked |
Was this page helpful?