[Custom Input Masks] Time mask
Question
Forge component by Sara Gonçalves

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.