DEV Community

Cover image for UI/UX Tips To Design Forms In Web Applications
Nill Webdev
Nill Webdev

Posted on

UI/UX Tips To Design Forms In Web Applications

Forms are one of the common ways the user interacts with applications, they are almost everywhere. While making a purchase, creating a profile, or signing up for newsletters, building forms the right way can easily boost your user interaction as the application becomes more friendly. I will be giving some minor and easy tips that can help you build better forms as a frontend developer or even as UI/UX designer.


There are times when our application is a specific target to some users, to make sure that maximum users are comfortable while using your application, you must test your forms on real users. However, there will be different cases as target markets are different and your forms need to be tested extensively with real users.



Form fields can have different states based on the user’s action, try to design every form element in all of those states. Start with the basic text input field and then try to customize it with border color, text weights, and shadows for different field states.

-You can also use icons inside such as checkmarks for a validated field or other related icons that show the current actions.

-While designing the negative and invalid states in your forms fields, make sure to provide a short description to let the user know what went wrong, you can use color (red) with different opacity to make it more descriptive for the user.

-Also, avoid adding all the validation displayed under the entire form and keep the description short and to the point.

Lable is a small explanatory text with the text field, in most cases, it is simply the description of what is required inside that form field and if your form has a lot of fields, then make sure to space them evenly and far enough to avoid the confusing look in your forms.

-Proper spacing can be done easily by using the cap height (height of capital letters) or 1.6 times the value of cap-height.

-The margin between multiple text fields and their label should be at least twice the height of labels which makes it clear where fields are starting and ending.



There are multiple reasons for using single-column forms in your application instead of multiple columns forms. When it comes to smaller screens such as mobile devices single-column forms are more friendly as they are more readable when it comes to mobile devices because you have a small path to follow with your eyes instead of jumping between blocks.


-Keep forms rather narrow and the best range is 320 and 500p wide. Wider fields will automatically take more time to process, so just keep it simple.

-If you have more than 6 fields or more, then it is recommended to divide them into separate pages with clear information of which step you currently are at the moment.

-Also, don't add the empty spaces around your forms, it is better to give the form the maximum amount of attention and the best focus.


In cases, if you have very few options that will be not changed in the future, then it is recommended to use radio buttons for such options instead of a drop-down menu. Using the radio button also adds a more consistent look to your application as users don't have to find these options whenever they are using the application.

Discussion (0)