Top
Top
LibraryEASYProcess Reference ManualWebPartsFieldsValidator
Validator Use Examples
Field:Validator

Appearance

AllowSorting

This property is only used when the field is in a list section. If AllowSorting is set to ‘True’, then the list will display a sort option at the top of the field column in the lest. This sort option can be selected and the list will be sorted on that column. To make a field the default sorting option for a section set the sections property SortField to the field.

Description

When the field has a Description, the text here displays in that description. Blank and spaces are accepted values for this property.

Whether a not a field has a description is determined by the section the field is in. Each section has a property called “Field Description” which has options to either not display a description (Field Description: No) or where it should be displayed in relation to the field (Field Description: left, right, top).

OverrideRender
ToolTip

If this property is not blank, the text entered here is displayed in a message when the user hovers over the field.

Enabled, RenderIfNotVisible, Visible
DisplayMode
ShowMessageBox
ShowSummary

Basic Properties

Active
IdMode

IdMode determines the id that the field gets when it is put on the page.There are two options: Default and NameOnly. Default set the id to [FieldName]@[WebPartId]@[index]@[index]. NameOnly sets the id to [FieldName].


Download

DownloadMode

Globalization

Translate

Translate can be set to ‘True’ or ‘False’ if set to ‘True’ when the language is switched from the default language the field contents will be translated. If set to ‘False’ it will not be translated.


Layout

DescriptionHorizontalAlign, DescriptionVerticalAlign, FieldDescriptionHeight, FieldDescriptionWidth, Height, HorizontalAlign, tabindex, VerticalAlign, Width

The horizontal alignment of the field description is controlled by DescriptionHorizaontalAlign and can be set to left, center, or right

The vertical alignment of the field description is controlled by DescriptionVerticalAlign and can be set to top, middle, bottom, or baseline

The horizontal alignment of the field is controlled by HorizontalAlign and can be set to left, center, or right

The vertical alignment of the field is controlled by VerticalAlign and can be set to top, middle, bottom, or baseline

The height of the field description is controlled by FieldDescriptionHeight

The width of the field description is controlled by FieldDescriptionWidth

The height of the field is controlled by Height

Control the tab order by setting the Tabindex of each field.

The width of the field is controlled by Width


Responsive Design

RWDVisibility

These two properties are used for adaptive design for phone display.

RWDAutoFormat : By default EASYProcess will does auto format for a control for adaptive design. For example, section NoOfColumns will always be set to 1 for phone display. By making RWDAutoFormat to false, you can stop such format from happening automatically. This property is only available at WebPart and Section level.
RWDVisibility : Its value can be All, Desktop, Phone. ‘All’ means this control will display in both desktop browser and phone. Desktop will force this control to display in desktop browser, Phone will force this control to display in phone browser. If value is blank, then it will default to ‘All’.


Style

CellStyle, CssClass, FieldDescriptionStyle, SkinId, Style
  • SkinId : A skin is a predefined collection of classes for a particular control. Once a SkinId is specified for a control, a set of classes in that control will be automatically set. For example, Class in Label will be ‘Label-<SkinId>-Class’. Every control defaults to SkinId = ‘Default’. You can have multiple skins for a particular control but only one can be applied at a time. Values for these classes are specified using EASYProcess CSS feature. To understand how CSS and Skin Id works review document here.
  • Class : By making SkinId blank, you can use your own class name. Make sure you define class name in your own CSS or using EASYProcess CSS feature.
  • Style : Apply inline styling using this property. Any value specified here will be applied directly. You can use EASYProcess style builder to create style string.
  • DescriptionStyle : Use this property to style description of this control.
  • CellStyle : Use this property to style container cell for a control.
  • To style other elements in this control, which are children of this control, use CSS selectors for children.


Validation

SupressIndividualMessages

Each field tied to the Validator has its own individual error message. When this property of the Validator is set to “True”, each field’s individual error message is suppressed so that the Validator can display one error message relevant to all fields in the Validation group.

ValidationGroup

Validator Use Examples

Quantity Validation with a Summary Box

The validator with a summary box is used when error messages should be displayed in one central place instead of attached to each individual field that is triggering the error.

Validator

The validation section of the validator should have SupressIndividualMessages set to Yes and the ValidationGroup set to a keyword that will be used to group the other fields together. This keyword will be used in the fields that need validation or trigger the validation. The ShowMessageBox property must be set to yes in order for the errors to display in the popup window.

Button

The button must have CausesValidation set to Yes and the ValidationGroup will be the keyword that was used in the validator. This sets up the button to trigger the validation of any field with the same keyword.

Field

The fields that require validation also need the keyword in the EPValidationGroup property. Now the same keyword is grouping all the necessary fields together. Multiple fields that need validation can be grouped under the same keyword even if they are not validating using the same criteria. The grouping is just used so the button triggers the validation of all grouped fields at once. The ErrorMessage property is the error message that will be displayed if the data entered into the field does not match the regular expression. The ValidationExpression is a regular expression pattern that the data entered into the field must match. The ValidatorDisplay should be set to none otherwise an error message will appear next to each field as the error occurs.


Powered by EASYProcess (© 2019 K-Rise Systems, Inc).