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 can be used to add annotations to a form, write short messages, 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:

...

6. Alternatively, you may not want to save your newly added custom field. Clicking the 'Cancel' button in the top navigation area will discard all changes made in 'Edit Mode', thereby exiting 'Edit Mode' and returning to the original form.

...

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

Sample Code

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);