Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
devel:documentation:application_configuration:dev:dynamic-forms [2019/07/25 12:41] tomiskar |
devel:documentation:application_configuration:dev:dynamic-forms [2021/02/10 18:20] (current) tomiskar [Dynamic forms (eav)] |
||
---|---|---|---|
Line 6: | Line 6: | ||
< | < | ||
- | **'' | + | **'' |
+ | * single autowired service for work with definitions, | ||
+ | * cache '' | ||
</ | </ | ||
< | < | ||
Line 13: | Line 15: | ||
<note important> | <note important> | ||
+ | |||
+ | < | ||
Dynamic form attribute supports data types ('' | Dynamic form attribute supports data types ('' | ||
Line 57: | Line 61: | ||
All [[https:// | All [[https:// | ||
+ | |||
+ | Custom configuration can be added to registered renderers (@since CzechIdM 10.8.0) - use '' | ||
===== Adding the support of extended attributes for a new entity ===== | ===== Adding the support of extended attributes for a new entity ===== | ||
Line 92: | Line 98: | ||
{{tag> | {{tag> | ||
+ | For form attribute values is possible to configure prepared validations. Validation are evaluated (**on the backend**), when form with extended attributes is saved and sent to backend. Simple validations as '' | ||
- | ==== Regex ==== | + | <note important> |
+ | |||
+ | === Required | ||
+ | |||
+ | Value is required. | ||
+ | |||
+ | === Unique === | ||
+ | |||
+ | Value has to be unique. | ||
+ | |||
+ | <note info> | ||
+ | |||
+ | === Min, Max === | ||
+ | |||
+ | Value has to be greater than (lesser than) or equal given '' | ||
+ | |||
+ | <note info>Min and max validation is supported for numeric '' | ||
+ | |||
+ | === Regex === | ||
Value has to match given regular expression ([[https:// | Value has to match given regular expression ([[https:// | ||
Line 106: | Line 131: | ||
</ | </ | ||
+ | {{ : | ||
- | ==== Validation message | + | === Validation message === |
Custom validation message. If message is not defined, then default message by invalid validation type will be shown. | Custom validation message. If message is not defined, then default message by invalid validation type will be shown. | ||
<note tip>Can contain localization key (e.g. '' | <note tip>Can contain localization key (e.g. '' | ||
+ | |||
Line 135: | Line 162: | ||
* Attachment renderer: support multiple files, validation support (now is validation on input) | * Attachment renderer: support multiple files, validation support (now is validation on input) | ||
* Created deep copy, when form values are copied => attachment is linked to two form values and is removed, when the first one is deleted. | * Created deep copy, when form values are copied => attachment is linked to two form values and is removed, when the first one is deleted. | ||
+ | * [[https:// |