Editing mode - Users can edit document content and insert fields.
Viewing mode - Read-only document display, fields can still be inserted.Changing mode at runtime switches between editing and viewing without recreating the editor: no scroll jump or content flash:
Each color controls the field’s border and label in the document. The sidebar badges match automatically. Custom field types beyond owner and signer work the same way: just add them to fieldColors.
You can also import @superdoc-dev/template-builder/field-types.css directly and use CSS variables instead. The fieldColors prop is the recommended approach: no extra imports needed.
The fieldType value flows through all callbacks (onFieldInsert, onFieldsChange, onExport, etc.) and is stored in the SDT tag metadata.
Per-field lockMode overrides defaultLockMode. The default field creation form includes a “Locked” checkbox that sets contentLocked.Template authors can always delete and manage fields regardless of lock mode: locking only affects end users interacting with the document. For advanced use cases, see lock modes.
When a user selects an existing field from the “Existing Fields” section in the menu, a linked copy is inserted. Both instances share a group ID and stay in sync.The menu automatically groups existing fields and shows the count. When the last field in a group is deleted, the remaining field’s group tag is removed.
The key is used solely for organization identification. It does not enable or disable any features, and nothing is blocked if a usage quota is reached. The key is forwarded to the underlying SuperDoc instance.