bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Form Validation customization

Open Splash-Nemo opened this issue 1 year ago • 3 comments

Prerequisites

Proposal

Implement robust client-side validation in Bootstrap forms with customizable error messages and styling options.

From https://github.com/twbs/bootstrap/issues/40573#issuecomment-2183607649:

I'm suggesting we make Bootstrap forms better by adding strong validation features. This means error messages that can be customized for different needs, like required fields or wrong email formats. Also, we'd add options for changing how forms look, so developers can match them to different designs or brand styles. They could adjust colors, fonts, and animations easily. This would give more freedom and make websites easier to use. Thanks for considering this improvement.

Motivation and context

It will ensure accurate data entry and also enhance user experience with customizable error messages and styling options, optimizing usability and reliability.

Splash-Nemo avatar Jun 20 '24 22:06 Splash-Nemo

Thanks for this feature request @Splash-Nemo Could you please modify your description to elaborate more your proposal? I would allow the community to understand exactly what you would expect to be added/improved.

julien-deramond avatar Jun 21 '24 05:06 julien-deramond

@julien-deramond I'm suggesting we make Bootstrap forms better by adding strong validation features. This means error messages that can be customized for different needs, like required fields or wrong email formats. Also, we'd add options for changing how forms look, so developers can match them to different designs or brand styles. They could adjust colors, fonts, and animations easily. This would give more freedom and make websites easier to use. Thanks for considering this improvement.

Splash-Nemo avatar Jun 22 '24 00:06 Splash-Nemo

@Splash-Nemo The validation features you are referring is already there in bootstrap and about the custom validations can you give any example ?. About the UI of forms, I agree with you on "freedom & easier to use" but I generally add custom css on top of it if i need it, Are you thinking of controlling with classes or attributes ?

Durgeshhirani avatar Aug 02 '24 10:08 Durgeshhirani