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

Typemodal
Categorycontainer
Children allowed1
Styling targetsbspk, modalContent
EventsonClick

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

SettingHow it is setWhat it doesSpecifics
Source block
blockinfo
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.
ID
vt_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

SettingHow it is setWhat it doesSpecifics
4D function for the link
vt_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 load
vt_BlockToload
select (text)—
https page link
vt_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 ID
vt_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 parameters
vt_UrlParametersToAdd
text (text)Parameters appended to whichever destination is used (form a=1&b=2).

Appearance

SettingHow it is setWhat it doesSpecifics
Panel mode (no backdrop)
vb_PanelMode
toggle (boolean)—default: no
Click outside to close
vb_closeClickOutside
toggle (boolean)—default: no
Close with a cross
vb_closeCross
toggle (boolean)—default: no
Modal position
vt_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.