[Custom Input Masks] Keep Mask not functioning
Question
Forge component by Sara Gonçalves

When Keep Mask is set to False, it saves with mask anyway.

I saw an older post in reference to this from 2016, but I am using the newest version now, and it still seems to have this same problem? Does anyone have a solutions?

-

Outsystems v.10.0.814, Custom masks v.3.0.4, Cloud Deployed

Solution

Christopher Trombatore wrote:

Marcelo Ferreira wrote:

Hi,

Try autoUnMask = true or removeMaskOnSubmit in case you are using it on a submit

Regards,

Marcelo

I tried both of these and neither solved the problem. The mask is still being saved in the system.

I am using it with an Ajax Submit, if that matters.

Edit: This is the way I have it in the AdvancedOptions 

SyntaxEditor Code Snippet

"{removeMaskOnSubmit: true}"



"{autoUnmask: true}" works for me. Maybe you can try that.

mvp_badge
MVP

Hi,

Try autoUnMask = true or removeMaskOnSubmit in case you are using it on a submit

Regards,

Marcelo


Marcelo Ferreira wrote:

Hi,

Try autoUnMask = true or removeMaskOnSubmit in case you are using it on a submit

Regards,

Marcelo

I tried both of these and neither solved the problem. The mask is still being saved in the system.

I am using it with an Ajax Submit, if that matters.

Edit: This is the way I have it in the AdvancedOptions 

SyntaxEditor Code Snippet

"{removeMaskOnSubmit: true}"


Solution

Christopher Trombatore wrote:

Marcelo Ferreira wrote:

Hi,

Try autoUnMask = true or removeMaskOnSubmit in case you are using it on a submit

Regards,

Marcelo

I tried both of these and neither solved the problem. The mask is still being saved in the system.

I am using it with an Ajax Submit, if that matters.

Edit: This is the way I have it in the AdvancedOptions 

SyntaxEditor Code Snippet

"{removeMaskOnSubmit: true}"



"{autoUnmask: true}" works for me. Maybe you can try that.

I had the same problem, i used the "{autoUnmask: true}" in the AdvancedOptions  and it worked for me.
Thanks

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