latest Post

Design Hack You Should Invest In Login Design



Me literally every day.

Login to work and log out. so how to make Login Design seems effectlessy

For login design, the flow of transition must be in good flow for user. You must make your user to Login Without much effect. Lets see what expect suggest


Disabled Form Fields of HTML Will Not Get the Values (Null) After Submitting the Form

Using the code below for the input form fields in HTML will generate the disabled field. The disabled field is the one which is not editable, not focusable, won’t get tab navigation, and can’t select the field. We can apply this attribute on all input fields, buttons, select box, etc. 

Please see the code below:

<input type=”text” name=”accountNumber” value=”123455” disabled=”disabled”   />
This will generate the disabled text field where we are unable to edit and select the field.

Characteristics of Disabled Form Fields

  • Disabled form field cannot be focusable, i.e., you cannot focus the field. 
  • Disabled fields are non-editable.
  • Disabled fields will not be submitted when submission of the form happens or when we click on the Submit button.
  • Disabled fields will give null values after submitting the form where you are getting the values (it may be struts action class in case of struts or servlet class in case of servlets).
  • We can modify the values of disabled fields only through JavaScript at the client side.

How to Get Disabled Behavior for Any of the Input Fields and Get the Non-null Values After Form Submission

  • Make the field readOnly instead of disabled  by putting the attribute as readonly=”readonly” for html fields and readOnly=”true” for struts JSP fields.
  • Prepare the CSS with the color of disabled fields (i.e. gray color), and apply the CSS to the fields which you made as readonly. Now the field is uneditable because of the readonly attribute and looks like the disabled field because of the CSS applied.

Characteristics of readonly Fields

  • Fields are not editable through the screen.
  • Fields can be modified through JavaScript code at client side.
  • Fields can be Focusable.
  • Fields can be selectable.
  • Tab navigation is possible on the fields.
  • Values can be submitted after form submission.
  • There are no null values after form submission whenever the field contains values while submitting.

This will solve the issue with disabled fields used in the view layer for a specific purpose and will help to get the disabled behavior.

How to Optimized Use of Placeholder in Login (Real Design Hack)




Make placeholder as a label to your login input field with ease of transition. On Mouse Click in the input field Make the placeholder transition to label of the input field

About Unknown

Unknown
Recommended Posts × +

0 comments:

Post a Comment