Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

  1. 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.


2.   Upon clicking this button an 'Edit Mode' will be enabled. All buttons in the top navigation become hidden and three new buttons appear in their places. New buttons are: 'Add Field', 'Cancel', and 'Save'.

...

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

ShowButtonboolfalseShows/Hide the button
ButtonTooltipTextstringCreate and manage custom annotations for this form.The tooltip text of the button
ButtonNamestringAnnotationsThe 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);