File Input MDB validation


Topic: File Input MDB validation

splico free asked 3 years ago

Hi guys, I am trying to find out how to do File input validation, meaning file upload is required, I am using JQuery MDB, material file input uploader.  examples online don't show what am I missing.


Marta Wierzbicka staff answered 3 years ago

Hi,

add "required" to your input like here:

https://mdbootstrap.com/snippets/jquery/marta-szymanska/200710

Best,

Marta


refreshcreativemedia pro commented 3 years ago

How do you show invalid feedback on this?


MDBootstrap staff commented 3 years ago

Hi, to trigger function on validation use data-feedback. We have documentation for this tag here: https://mdbootstrap.com/docs/jquery/components/stepper/#feedback


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: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.14
  • Device: PC
  • Browser: Chrome
  • OS: Win 10
  • Provided sample code: No
  • Provided link: No