Forms. Manage field settings via field options_
Description of using options
Previously settings for some complex elements were made via the dict field elements procedure.
Now you can use the special pseudo-field options_{colCode} in getItem SELECT 1 (colCode is the name of the corresponding column).
This method overrides similar settings from dict (but the old method of settings via the dict procedure is also supported).
Example of settings:
--SELECT 1 в GetItems
select name,
'{
"title": "Title1",
"disabled": true
}' options_name
from t1
IMPORTANT. Be sure to use quotation marks for field names.
Settings by Type
General Settings
disabled: true false,
title - replaces the element title,
class - sets the CSS class,
width - sets the width as the css value for width,
placeholder - hint for entering the element value,
saveState - if true, the field will retain its value after saving and will be substituted in the future when loading the form (if no value is specified in the field).
string
- mask - '9999999' - input mask
- prefix, suffix - adds additional markup to the field at the beginning or end of the field.
Examle:
select '{"prefix":"prefix", "suffix": ""}' options_s1
int, float, html-number
- min - minimum value,
- max - maximum field value,
- step - increment step,
- readonly - if true, the element is read-only
date
- availableDates - available dates to select (separated by commas, see the separate documentation for using these modes)
- disabledDates - unavailable dates to select (separated by commas)
- format - if set, it sets the date format (if not, the global date format settings are taken from getLayout).
- isInput - if true, it is displayed as an input field with a drop-down calendar
daterange
- format - if set, it sets the date format (if not, the global date format settings are taken from getLayout).
time
- format - if set, it sets the time format (by default, hh:ii).
- minuteStep - step of choosing between minutes (default is 5)
bool
- hideLabel - if true, the label will not be displayed for the jackdaw
switch
- size - sets the size of the radio button (mini, normal, small, large)
- on - text when enabled
- off - text in the off state
- onstyle - enabled state style(success, danger...)
- offstyle - off state style (success, danger...)
text
- rows - the number that sets the height (rows) of the textarea
- cols - the number that specifies the width (cols) of the textarea
select-search
- selectHint - a line that specifies the initial hint in the element
select2
- placeholder - hint in the element when there are no selected elements
- multiple - if true, multiple choice is available. If multiple elements are selected, they are passed comma-separated to the procedure.
- tags - if true, you can add your own element, if it is not among the existing ones (write the text and add it). The newly added elements will have a value which is the same as text.
treeCheckboxes, treeOrder
- cascadeCheck - if true, then selecting the check mark also selects all child elements.
- width - number, tree width
files, fileContent
- code - resource manager code
- title - resource manager header
- compact - if true, then compact mode displays the file gallery
- ultracompact - if true, then very compact mode displays the file gallery.
- emptyText - text when there are no loaded items in the resource manager
- uploadTitle - download window title
intrange (range of numbers)
- min - minimum value of the selected interval
- max - maximum value of the selected interval
- step - range change step
- minValue - minimum limit
- maxValue - maximum limit
geo-autocomplete (geo point selection)
- jsonOptions - a line with the geo JSON settings (see the Geo documentation). This is exactly a nested JSON object.
Example of how to make it so that only business objects and settings are shown without restrictions on the type of objects (by default, types= ["geocode"]):
-- SELECT 1 in GetItem - business objects only
select '{
"jsonOptions": "{\"types\": [\"establishment\"] }"
}' options_geoAddress
-- SELECT 1 in GetItem - no type restrictions
select '{
"jsonOptions": "{\"types\": [] }"
}' options_geoAddress
Details - https://developers.google.com/maps/documentation/places/web-service/supported_types#table3
timer
- code - sets the timer code
- itemID - sets the ItemId of the associated element to which the timer belongs
slider
- min - minimum value, number
- max - maximum value, number
- step - move step, number
- enabled - if true, then enabled
- ticks - a comma separated line of numbers where the labels will be
- labels - comma-separated label labels (line), corresponding to the position of ticks
- orientation -horizontal, vertical
weekTime
- standartWorkTime - line, the name of the button for setting the standard work schedule 7/2 9-17
- showHours - if true, the grid will show the clock
- Management
- Falcon Space Foundation
- Basic components
- Falcon Space Features
- Коммуникация с пользователем
- Дизайн, стилизация
- Integrations
- Каталоги
- Навигация
- Документы
- Additional component
- Продвижение, SEO
- Системные моменты
- HOWTO
- HOWTO Tables
- HOWTO Forms Forms. How do I accept multiple incoming parameters instead of just one parameter(itemID)? Shapes. How to create a form for editing an entity Forms. How to make custom HTML markup for a form (jsRender) Forms. How to make a search for a field, i.e. a list with a search through a database access (autocomplete) Forms. How to set some fields in the form by default when loading Forms. How to display different data on the same form for different roles Forms. How to display a list of check marks in the form (multiple field selection) Forms. How to display and save a multiple list through a chosen field. Forms. To reload a page after saving Forms. How to add a callback after loading the form and after saving the form. Forms. How to dynamically change the column type when rendering a form. Forms. How to make a modal form (opens in the dialog box) Forms. How to update a table (or form) after calling a modal form Forms. How to display a form in a pop-up window near to the button (popover) Forms. How to make dependent fields in a table (Country, City) Forms. How to select an address and save location coordinates (lat,lng). Forms. How to correctly process prices (fractional numbers) on the form Forms. How to display list data or a table inside a form Forms. Setting the background panel for a form Forms. How to pass a hidden parameter to a form Forms. How to make select and chosen lists with categories (optgroup) Forms. How to make a form as a step master Forms. How to show the progress of filling in the form (ProgressBar of filling in the form) Forms. How to use Checkboxes and select radio with picture Forms. How to make fields with animated values (rotating numbers, digits). Forms. How to edit the text of HTML elements in the Rich editor Forms. How to display a table in the modal window Forms. How to use the Select files field in the form Forms. How to hide / show update area on a page when changing a form field Forms. How to work with the Timer field Forms. How can I send a hidden parameter to a form in SaveItem (for example, a Cookie or URL parameter) Forms. How to show changing information when changing fields Forms. How to make a form with saved state Forms. How to work with a Slider type Forms. How to output and process data on a form from an external source via the API Forms. Adding a button to clear the form (Reset form) Forms. How to make a confirmation action in a text MESSAGE (SMS) form Setting the work schedule (weektime form field) Forms. How to make more than 1 action buttons in a form How to add examples of filling in fields in the form How to select a list value via the directory in the modal window How to make a confirmation window for the form action Forms. Dynamic change of the form's ItemId depending on other page elements Forms. How to add a new element if it is not in the list on the form. How to create a custom form with confirmation of action by Email or CMS How to make a delay when saving a form Hints-length limiters for fields in the form How to save the field value in the browser, so that you don't have to enter it every time you load it (leave the last saved one) Inserting links using a template (YouTube link, patternString) Forms. Uploading the form via the link Forms. Manage field settings via field options_ Forms. Using Google Recaptcha in forms How to specify custom mask for input field in form Form. How to display a tree with a selection of checkboxes Forms. How to choose a color in a form Custom verification of form fields via JS How to set available dates in datepicker Loading the form in the drop-down window Adding emojis to form fields Форма. Обработка даты из поля datetime-local Как у формы сделать progress bar при загрузке формы Редактор текста - код поля формы html2 Работа с датами в формах
- Working with SQL
- HOWTO JS
- HOWTO Layout
- Solve problems
Falcon Space Platform
This is a reduction in the cost of ownership
at the expense of fewer people to support
This is a quick change
while using the program
This is a modern interface
full adaptation for mobile devices
- Falcon Space Video
- Platform features demo will allow you to understand how this or that component looks and works
- Have a question? Write to the chat at the bottom right