Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.joyfill.io/llms.txt

Use this file to discover all available pages before exploring further.

Joyfill forms can operate in two modes that control whether users can edit fields.

Available Modes

enum class Mode {
    fill, readonly
}

Setting the Mode

Set the mode when creating your Form:
Form(
    editor = rememberDocumentEditor(json),
    mode = Mode.readonly  // default is Mode.fill
)

Mode Comparison

FeatureMode.fill (Default)Mode.readonly
DescriptionUsers can interact with and edit all form fieldsUsers can view the form but cannot make any changes
Field editingEnabledDisabled
EventsFire normally (onFieldChange, onFocus, onBlur, etc.)Don’t fire
Upload/capture actionsEnabledDisabled
Field valuesCan be changedVisible but locked