apex_add_item
Add a form item to an APEX region with support for text, number, date, select, and more. Build forms by specifying page and region.
Instructions
Add a form item. Types: text, number, date, select, textarea, hidden, yes_no, display_only. Auto-prefixed P{page_id}_.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Display label. Auto-generated from item_name if omitted. | |
| colspan | No | Number of grid columns to span (1-12). | |
| page_id | Yes | Page ID. | |
| lov_name | No | Name of LOV for select/radio/checkbox items. | |
| sequence | No | Display order within the region. | |
| item_name | Yes | Item name following APEX convention P{PAGE}_{NAME} (e.g., P10_FIRST_NAME). Will be auto-prefixed with P{page_id}_ if not already prefixed. | |
| item_type | No | Input type: - "text": Text input (default) - "number": Numeric input with validation - "date": Date picker (APEX native) - "select": Select list (requires lov_name) - "hidden": Hidden field (no label shown) - "textarea": Multi-line text - "yes_no": Yes/No switch - "switch": Alias for yes_no - "password": Password field (masked) - "display": Display-only (non-editable) - "checkbox": Checkbox group - "radio": Radio button group - "rich_text": Rich text editor (WYSIWYG) - "color_picker": Color picker - "star_rating": Star rating input - "slider": Range slider - "qr_code": QR code display | text |
| read_only | No | Make item read-only (display value, not editable). | |
| is_required | No | Show required indicator and add NOT NULL validation. | |
| placeholder | No | Placeholder text for text inputs. | |
| region_name | Yes | Name of the parent region (must exist, created with apex_add_region). | |
| default_value | No | Default item value (can be &SUBSTITUTION.). | |
| source_column | No | Database column to bind (for form DML, e.g., "FIRST_NAME"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |