Disable the validation dialog

1 Answer 20 Views
Input
Mustard
Top achievements
Rank 1
Mustard asked on 24 Apr 2024, 09:24 AM

Hello, is there any chances to disable or do not display the validation dialog upon using the Input component. Based on this example, I want to use the Error component for displaying the validation as Text and I will no longer use the validation dialog.

Btw, I'm using Kendo UI for Vue

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 26 Apr 2024, 12:13 PM

Hi Mustard,

This is the browser validation dialog and you can see the same message if you add "required" to an input element (or any other validation):

      <form>
        <input required />
        <button>Submit</button>
      </form>

There are some option with CSS or with JavaScript that can be used:

    document.addEventListener(
      'invalid',
      (function () {
        return function (e) {
          //prevent the browser from showing default error bubble / hint
          e.preventDefault();
          // optionally fire off some custom validation handler
          // myValidation();
        };
      })(),
      true
    );

You can also check the following forum thread:

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources

Tags
Input
Asked by
Mustard
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or