Victor Profile picture
Jun 3, 2021 • 10 tweets • 3 min read • Read on X
How to validate forms?

Some useful Do/Dont's 👇
The best place to show validation errors - near inputs. Don't gather all of them in one place.
Don't disable the submit button. Allow users to click on it and see the validation errors.

Users might scroll past some of the inputs without filling them.

If the submit button is blocked, then they won't know what to do next.
Consider providing positive feedback as well as negative.
In error messages use human language, not a technical one.
If you put an exclamation icon next to inputs it might help colorblind people to notice the error.

See the 5th point…
Don't hide error messages under icons.
Show password rules right away.
Validation is cool, but it'd be better if users don't make mistakes.

Help your users to avoid mistakes.
Now, when to do the validation?

I've previously made a thread about it.

• • •

Missing some Tweet in this thread? You can try to force a refresh

Keep Current with Victor

Victor Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!


Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @vponamariov

May 24, 2023
Today I turned 34.

Here is an updated version of the most helpful tweet I've ever posted.

How to design almost any UI element?

A curated list of 34 articles 👇

1. How To Design Better Buttons by @101babich and @smashingmag


2. Desperately seeking squircles

Thanks @Southclaws and @figma

3. Designing A Better Back Button UX


Thanks @vitalyf Squircled button
Text fields

4. Text fields & Forms design — UI components series


from @uxdesigncc by Taras Bakusevych

5. Validate it. The right way.


By me :) Input anatomy
Read 18 tweets
Nov 23, 2022
Five UI/UX tips to improve your landing pages 👇

#SketchDesignChallenge 🔥
1/5. Poor text contrast on images.

Make sure that

🔷 the text on images is easy to read
🔷 it doesn't cover any important objects behind it (e.g. faces or products)
🔷 text contrast is good everywhere, not only on images
2/5. Navigation.

Don't hide navigation under hamburger icons on desktop devices.

That will hinder users to find necessary pages.
Read 6 tweets
Oct 17, 2022
CSS Tip ☝️

I needed to make a pill component that should have had a 1px border.

But when on hover it should be doubled.

It wasn't that easy, and here is why.
If you simply make a 2px border on hover it will increase the height and width of the pill.

Since you don't know in advance what the width is, and probably the pill might be multiline, I don't think using fixed height/width is a good solution.
Instead, what I did is - I used shadows.

The first border is 1px shadow, and the second border (in the hover state) is 2px shadow.

And that's basically it.

A simple, yet nice trick.
Read 4 tweets
Oct 17, 2022
Some things designers should learn by themselves
by Michael McWatters (link at the end)

I SO MUCH liked this that I'm going to share some parts from the article 👇
🔸 32% of your time will be spent labeling buttons.

🔸 Blood will be shed over any question that begins, “Should designers…”.

🔸 All the research in the world is no match for your CEO’s opinion.
🔸 The design will fail on one platform, and that platform will be the one your boss uses.

🔸 The delta between what you designed and what gets shipped can be measured in light years.
Read 9 tweets
Sep 6, 2022
One UI/UX problem. Seven examples. One thread 🔥

Clickable area.

Do you make it right? Let's find out 👇
1/7. Sidebar menus.

Make sure that sidebar links have enough clickable space.
2/7. Vertical navigation.

A typical case is when the navigation links of a landing page don't have extra clickable space.
Read 8 tweets
Sep 5, 2022
UI/UX Tip 💡

Even if you have a lot of space, it doesn't automatically mean you should fill it.

It's perfectly fine not to stretch your inputs, text, and whatever to the parent container's width.

Make it reasonable instead.
Guys, in the example above the thing, is that my cards are not cards. I just stuck on the same design of tips.

Yes, usually you make inputs occupy the whole container and you limit the container, of course.

Idea is that the CONTAINER shouldn't occupy the whole space
I mean, the picture is a little bit ambiguous, yes...=\

Imagine that on the second page I limited an invisible container (instead of inputs)
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!


0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy


3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!