• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChart
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheet
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeView
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Forms Support

The Input component can be easily integrated with HTML5 form as well as KendoReact Form (or other third-party solutions).

The forms supports enables you to validate input values and prevent the submission of forms which are in an invalid state.

In addition to the exposed form support settings, the Input provides the same properties and behaves in the same way as a native HTML input element.

Functionality and Features

Setting Validation Requirements

The Input supports props for setting basic validation requirements—for example, the minimum and maximum length. The minLength, maxLength, and required properties enable the user to pre-define minimum requirements which define the validity state of the component and allow a successful form submission.

View Source
Change Theme:

Setting Custom Validation Messages

You can implement custom error messages which will be displayed when the Input is in an invalid state and the user tries to submit the form. To render a custom validation message, set the validationMessage prop.

View Source
Change Theme:

Enforcing the Validity State

The Input enables you to set its validity state by utilizing its props. Setting the validity state allows for the implementation of complex validation scenarios that are based on multiple sources. To override the current validity state and apply the corresponding styles, use the valid prop.

View Source
Change Theme:

Disabling the Validation Styling

By default, to achieve a visual representation of its invalid state, the Input applies the k-invalid class name to the wrapping component. To disable the utilization of k-invalid, set the validityStyles property to false.

View Source
Change Theme: