Modal
The modal window. A container that stays hidden until an event opens it — a click on a button, a 4D action. Whatever you put inside is a page like any other: a form, a listbox, some text.
What it is
| Type | modal |
| Category | container |
| Children allowed | 1 |
| Styling targets | bspk, modalContent |
| Events | onClick |
The settings
Only the settings specific to this block are listed here. The block name, HTML id, anchor, conditional display and repetition are shared by every block and described once, under Shared settings.
Parameters
| Setting | How it is set | What it does | Specifics |
|---|---|---|---|
Source blockblockinfo | select (text) | Page block whose attributes and field values are attached to the POST of any event fired from this modal. A modal is detached from its context: without this, the event carries nothing from the block that opened it. | |
IDvt_Id | text (text) | Identifier of the dialog itself, targeted by the scripts that open it. Not to be confused with the block HTML id, under “Parameters”. |
Destination
| Setting | How it is set | What it does | Specifics |
|---|---|---|---|
4D function for the linkvt_4dFunctionToGetLink | text (text) | If several destinations are filled in, only one applies: the 4D function first, then the custom link, then the linked page. The others are ignored. | accepts 4D |
Name of the block to loadvt_BlockToload | select (text) | — | |
https page linkvt_CustomLink | text (text) | If several destinations are filled in, only one applies: the 4D function first, then the custom link, then the linked page. The others are ignored. | |
Page IDvt_MenuUuid | select (text) | If several destinations are filled in, only one applies: the 4D function first, then the custom link, then the linked page. The others are ignored. | |
URL parametersvt_UrlParametersToAdd | text (text) | Parameters appended to whichever destination is used (form a=1&b=2). |
Appearance
| Setting | How it is set | What it does | Specifics |
|---|---|---|---|
Panel mode (no backdrop)vb_PanelMode | toggle (boolean) | — | default: no |
Show the footervb_ShowFooter | toggle (boolean) | The page opens in the dialog without the site header, sidebars or footer. Tick the areas to keep: each one only appears if the site uses it. No effect when a single block of the page is loaded. | default: no |
Show the page headervb_ShowHeader | toggle (boolean) | The page opens in the dialog without the site header, sidebars or footer. Tick the areas to keep: each one only appears if the site uses it. No effect when a single block of the page is loaded. | default: no |
Show the left sidebarvb_ShowSideBarLeft | toggle (boolean) | The page opens in the dialog without the site header, sidebars or footer. Tick the areas to keep: each one only appears if the site uses it. No effect when a single block of the page is loaded. | default: no |
Show the right sidebarvb_ShowSideBarRight | toggle (boolean) | The page opens in the dialog without the site header, sidebars or footer. Tick the areas to keep: each one only appears if the site uses it. No effect when a single block of the page is loaded. | default: no |
Click outside to closevb_closeClickOutside | toggle (boolean) | — | default: no |
Close with a crossvb_closeCross | toggle (boolean) | — | default: no |
Modal positionvt_Position | checkbox (text) | — | default: center |
The tables on this page are produced automatically from the block's schema. If this page and the panel disagree, the schema is right.

