Quik! offers the ability to add a custom field to a form and add values into that field. Custom fields an be used to add annotations to a form, or for any other reason a user might want to include extra information either adjacent to or on top of existing fields. See the screenshots below for instructions on how to add custom fields to a form:
- Located the 'Edit' button to the left of the 'Clear' and 'Reset' buttons. This 'Edit' button should only be visible when it is configured to appear (see Sample Code section below)-- it is off by default.
...
There is a method in the QuikFormsEngine class called SetCustomFieldEditor that enables/disables this feature. By default, it is off. This method takes an object of class CustomFieldEditorSettings as parameter. Its properties are described In the table below:
Property | Type | Default Value | Description |
---|---|---|---|
ShowButton | bool | false | Shows/Hide the button |
ButtonTooltipText | string | Create and manage custom annotations for this form. | The tooltip text of the button |
ButtonName | string | Annotations | The name of the button that is displayed in the form's header |
VB.NET
Dim customFieldSettings = New CustomFieldEditorSettings() customFieldSettings.ShowButton = True customFieldSettings.ButtonName = "Edit Form" 'No Tooltip specified. Let's leave the default value. objQFE.SetCustomFieldEditor(customFieldSettings)
C#
var customFieldSettings = new CustomFieldEditorSettings(); customFieldSettings.ShowButton = true; customFieldSettings.ButtonName = "Edit Form"; //No Tooltip specified. Let's leave the default value. objQFE.SetCustomFieldEditor(customFieldSettings);