[Custom Input Masks] Time mask

Forge Component
(45)
Published on 23 Jul by Huarlem Lima
45 votes
Published on 23 Jul by Huarlem Lima

Hello All.

I want to validate a time format like "HH:MM" but the field of time is always empty. It seems the component only works with dates.

Did I misunderstand something?

Thank you.

Gonçalo Almeida

Goncalo Almeida wrote:

Hello All.

I want to validate a time format like "HH:MM" but the field of time is always empty. It seems the component only works with dates.

Did I misunderstand something?

Thank you.

Gonçalo Almeida

Hi Goncalo, the user needs to select the hours or type the hour?

I tried with input as Text and the "MaskText' with mask definition = "99:99" and works fine here, with MaskDate I'm not sure if it is possible but you can check the documentation of the Javascript code that this component is based and check or adapt if possible 

check my example:



Hope I could help you.

Best Regards

Carlos Lessa