Hide

YetaWF.ComponentsHTML Package Documentation

Display
Print

YetaWF.Modules.ComponentsHTML.Components.YHtmlHelperExtender.ValidationMessage Method

Returns the client-side validation message for a component with the specified field name.

Class: YetaWF.Modules.ComponentsHTML.Components.YHtmlHelperExtender
Namespace: YetaWF.Modules.ComponentsHTML.Components
Assembly: YetaWF.ComponentsHTML

Syntax

public static string ValidationMessage(
    this YetaWF.Core.Support.YHtmlHelper htmlHelper,
    string? containerFieldPrefix,
    string fieldName );

Parameters

htmlHelper

An instance of a YHtmlHelper.

containerFieldPrefix

The prefix used to build the final field name (for nested fields). May be null.

fieldName

The HTML field name.

Return Value

Returns the client-side validation message for the component with the specified field name.

See Also YetaWF.Modules.ComponentsHTML.Components.YHtmlHelperExtender ClassYetaWF.ComponentsHTML PackageYetaWF.Core