Settings
...
Relation section
Prefilling a new item
6 min
for definition relation sections, it is possible to add a 'prefill data' when creating a new entity of a related definition feature config prefill y ou can configure a prefilling for the new entity of a relation definition, which will be applied when creating a new entity from the current section this setting will only work on the frontend, so if you configure it, the backend will not prefill the configured value, but will only prefill the specified default values since this setting only works on the frontend, you can specify computed expressions here, taking into account the context of the entity from which the add new entity dialog will be called the expression can reference the properties of the current entity and the operators available for the computed expression editor unavailable properties if previously selected properties have been removed in a relation definition, or the current user does not have permissions to access it, you will see a ' warning' icon and a tooltip informing you of this how the feature works first of all, you can always remove a default value by deleting it from the property you can do this by using the 'reset' button for some properties, such as 'entity' or 'date', or by clearing them with the 'delete/backspace' key delete current default value below are examples of how the 'prefill' settings will be applied scenarios creating a new related entity properties with configured 'prefill' in the relation section are filled with these values then, if no prefill values were used, the 'default value' from the properties of the definition whose entity you are adding is applied the backend will populate these fields only with 'default values' unless a forced reset is performed the backend is unaware of 'prefill' of a related section how does this work from ui create a new item from a relation section create a new item from relation section relation section button for create a new related item prefilled values