A code editor bound to a form field, with syntax highlighting for the configured language.
- Editing a stored snippet, template or query where indentation and highlighting matter.
- Editing an email template stored on the record.
- Using it for structured JSON that should be validated — a JSON Input reports parse errors.
- Using it for short single-line values, where the editor chrome outweighs the benefit.
Use instead
- Json Input — Use instead for JSON, to get parse validation and a parsed value rather than raw text.
Configure these in the Application Designer property panel. Group headings mirror the editor where possible. Data Source is where the element gets its rows or field binding (a view/query, a connector operation, or a parent form field). References appear only for view-backed sources and map foreign-key ID columns to readable labels from another view.
- Configuration for language.Choices
javascripttypescriptcsssqlxmlyamlmarkdownpythonregextext/x-regexhtmltexttext/css
Default: sql
- Configuration for can Change Language.Default: false
- Where this element loads its data (view, query, connector, or element).Default: none
- Configuration for default Value.Default: {}
- When true, the control cannot be edited.Default: none
- Whether the field may be left empty.Default: none
- Configuration for show Status Bar.Default: false
- Configuration for show Toolbar.Default: false
Inside dataSource: (dataSource)
- Another element on the page whose data backs this field.Default: none
- Path into the source element’s data (property segments).Default: none
- Minimum size: 1 × 1 grid cells (width × height).
- Default size when dropped on a page: 2 × 3.
Other parts of your app can read live values from this element in custom expressions:
elements.myCodeInput.<property>
value
string
Current input value of this control.
elements.myCodeInput.value
When The edited source as text, before the form is saved. Pair it with a Code Field to show a read-only preview.
disabled
boolean
True while the control is locked and cannot be edited.
elements.myCodeInput.disabled
To use one of these, open the property you want to drive on the other element, switch it to expression mode in the Expression Editor, and enter:
| |
Replace myCodeInput with this element’s unique id. Select the element in Application Designer and copy the id chip at the top of the right-hand property panel.
Drag this element into one of these containers:
| |