Generic Placeholder with Input Mask


Topic: Generic Placeholder with Input Mask

PerfectCamp pro premium priority asked 2 years ago

I can't seem to get a generic placeholder to display while a mask is in place. I'm a new user so maybe I'm missing something.

Expected behavior

I have a placeholder of Enter Zip Code inside a text field and I want to use the Input Mask Plugin to limit the user to entering in a five digit zip code number 99999.

Actual behavior

After configuring the input field with a mask of 99999, the placeholder text no longer displays and the user sees 99999. This behavior confuses the user as they don't know what to put into the text box. enter image description here


kpienkowska staff answered 2 years ago

You can disable the placeholder and set the input label: https://mdbootstrap.com/snippets/standard/kpienkowska/5235583


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No