surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.13k stars 805 forks source link

Can I provide my custom error layout/html for showing errors in validation? #2655

Open agnihotrivarsha opened 3 years ago

agnihotrivarsha commented 3 years ago

Are you requesting a feature, reporting a bug or asking a question?

Question

What is the current behavior?

What is the expected behavior?

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

your_code_here

Specify your

tsv2013 commented 3 years ago

There is no special event/option for it right now. You can change question (and validation message inside it) markup using the https://surveyjs.io/Documentation/Library?id=surveymodel#onAfterRenderQuestion event as shown in this example - https://surveyjs.io/Examples/Library?id=survey-afterrender&platform=jQuery&theme=modern