Form Container
Last updated
Was this helpful?
Last updated
Was this helpful?
The "Form container" component is a container that shows 1 form inside it. It has no additional UI decorations. The contained form can optionally show related data.
It is suited for use in both Advanced (Responsive) and Simple CSS forms.
Here are the steps for creating a Form Container:
Open the Form Editor of the form where you need to place a Form Container
Find Form Container in Form Containers section in the components' pallet
Drag and drop the Form Container component in the desired place of the form
The contained form can show related data. In order to do this, you need to have the following:
Make sure that the relation from datasource table of the main form to datasource table of the contained form exists, otherwise it needs to be created
Once everything is set, the contained form will show related data according to the selected record in the main form. When the selected record changes in the main form, so will the related data from the contained form.
Here is an example of how to programmatically set the contained form, including relationName, in the Scripting Editor of the main form:
Select the property, where you set the name of the form you want to be displayed in the container
Optionally, you can use a relation by selecting the property, where you set the relation between the main form and the contained form
Edit other if needed
Set the property on the main form
Set the property on the contained form
Set the above relation in the property of the Form Container
can be also set in the Scripting Editor.
Other can be set the same way, by using elements.FormContainerName.FormContainerPropertyName
.