Forms How To's
How to's for the Forms guide.
Configuring Data Source for a Form
To configure data source for your form:
- Open the Form Designer.
- Click on the Structure tab or data icon.
- Define a new data source or select an existing one.
- Map your form fields to data source fields using the Property Inspector.
This step ensures controls like dropdowns, grids, and charts are populated with dynamic data during runtime.
Adding a Container to a Form
To organize controls visually in a form:
- Open your
.formfile in Form Designer. - From the Toolbox, find the Container Controls section.
- Drag a Group Box or Tab Panel into the form layout.
- Drop your form controls (e.g., textboxes, labels) inside the container.
This helps in logically grouping fields, such as address sections, or tabbed interfaces.
Setting Client-Side Events on a Form Control
To define client-side events:
- Select the form control (e.g., a button).
- Open the Property Inspector.
- Go to the Events (Client) tab.
- Find the event you want to handle (e.g.,
OnClick,OnChange). - Write your JavaScript logic in the associated editor.
This is useful for UI interactions like showing/hiding sections, field validations, or alerts.
Creating a New Form
To create a new form:
- Go to Solution Explorer.
- Right-click on the Forms folder.
- Select New Item.
- Choose the type of form you want to create:
- Application Form
- Archive Form
- Process Archive Form
- Enter a file name like
MyLeaveForm. - Click Create to open the form in the Form Designer.
This will create a new .form file and open the visual editor for layout and logic design.