Skip to content
Advertisement

Tag: validation

Form validation – Must contain a specific word from a list

I’m trying to use Javascript to validate an input field to have the specific formatting below: “WORD1,WORD2” So there has to be a comma in between two words, no spaces. WORD1 can be any word, but WORD2 has to be a word from the following list: “USD”, “AUD”, “BTC”, “CAD”, “CHF”, “EUR”, “GBP”, “ETH”, “JPY”, “NZD” If the input field

ASP.Net Core app/JS validation: prompt user to update form, or exit page

I have an ASP.Net Core/Razor app with a simple form: I’m using the built-in client-side validation for things like <input …required> or <input type=”number” min=”0″ …> (Microsoft includes jQuery validation in their MSVS project templates). That all works fine. I’m also doing some additional, custom validation on certain fields. I’d like to give the user the option to either re-do

HTML 5 Validation Customization

I would like to have a form that: Display validation messages in a custom format instead of the default style. Display all invalid field bubbles at once instead of one at a time. Right now, I am stuck with the boring browser-specific message appearance and I don’t see the next error until I correct the last one. This is a

Advertisement