[Custom Input Masks] How to change the prompt. Eg: "dd-mm-yyyy" to "dd-mm-aaaa"?

Forge Component
(38)
Published on 22 Apr by Marcelo Ferreira
38 votes
Published on 22 Apr by Marcelo Ferreira

Hi,

I would like to know how to change the prompt, adapting to my language. For even using the Multilingual Locales feature, when setting the display change from "dd-mm-yyyy" to "dd-mm-yyyy", when I set the date, the text "yyyy" is fixed. The component does not interpret the change to the language.

How can I get around this request?

Thank you very much in advance!

Hi Edson,

Check out this comment, if this helps you. The post explains how to handle custom formats on page.

https://www.outsystems.com/forums/discussion/51042/how-to-use-input-calendar-dateformat-depending-on-location/#Post189686

Edson,

I think you'll need to change the placeholder in the advanced properties:

Take a look at the link below:
https://github.com/RobinHerbots/Inputmask#placeholder-1

Try to place the code below, changing the format according the current locale. Maybe you'll need a auxiliar function to return that format.

{ "placeholder": "dd/mm/yyyy" }


Tell us if it helps.

Cheers.