201
Views
2
Comments
[Custom Input Masks] How to change the prompt. Eg: "dd-mm-yyyy" to "dd-mm-aaaa"?
custom-masks
Web icon
Forge asset by Sara Gonçalves

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!

2018-09-27 18-20-33
Swatantra Kumar
Champion

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

2017-10-09 20-45-22
André Siébra

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.

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