Static text
The application element "Static text" is part of the basic controls and is a view element only. It can be used, for example, to label input controls, as in the figure above for the "Title" input field. The Static text element cannot be associated with a data field. The text displayed in the element, which can also be interpreted as HTML, is specified in the element's properties dialog. The "Static text" element can also be used for programming.
The Static Text element can be found in the Applications module in the Elements section. A new element can be created by dragging & dropping it from here and positioning it in the workspace.
More information on creating elements can be found here.
The element properties dialog opens automatically when it is newly created. The properties dialog of an existing element can be opened by double-clicking on the element in the workspace, via the "Properties" context menu or via the "Edit / Properties" main menu item when the "Static Text" element is selected in the workspace.
General
Title
Text, including multiple lines, can be entered here. It is then displayed in the element in the browser. HTML, Velocity or JavaScript source code will be interpreted accordingly, provided it is set accordingly in Options.
Learn how to use language constants as titles here.
If you use a language constant as a title here, no further settings have to be enabled on the "Options" tab.
Static text element in calendar and resource element
In Calendar and Resource elements, the element "Static Text" is used to display the title. When you open the properties dialog of the title, the calendar or resource element is entered in the "Calendar" selection list. The title is dynamically generated depending on which view is currently selected by the user (e.g. November 2022 in the month view or Monday, Sept. 29, 2022 in the day view).
Options
If you configured the "General" tab to use a language constant as the title, no further settings are required here in Options. A static title has the following settings:
Format
HTML/Text
For the formats "HTML" and "Text", the text will be shown in the language selected by the user. With the "HTML" option, the source code is interpreted accordingly.
Programming, only default language
This setting implements JavaScript or Velocity script recorded in the static text on the "General" tab. When the portal is switched to another language, the element "Static Text" continues to display script in the format in which it was entered. Accordingly, switching between languages does not take place here.
Programming, language dependent
Here, JavaScript or Velocity script can also be stored in multiple languages on the "General" tab. It is then processed using this setting, depending on the portal language.
Column presentation
Click here for more information about this topic.