333
Views
3
Comments
[Input Masks] Problems in reset value of input widget with reset "x" button of Internet Explorer
Question
input-masks
Web icon
Forge asset by António Chinita

Hello,

I'm using Internet Explorer 11 and this browser put in input widgets,
by default, a reset "x" button inside input-field that allow to reset the value to 0.
But, when input mask is added to input widget and I click in reset "x" button, the value
continue to change to 0 but when I save the changes with button save,
the value 0 doesn't appear.
The value that appear in input is the last before changes.

How can I correct this bug?

Thanks

2018-08-02 14-20-10
Bruno Domingues

Teixeira wrote:

Hello,

I'm using Internet Explorer 11 and this browser put in input widgets,
by default, a reset "x" button inside input-field that allow to reset the value to 0.
But, when input mask is added to input widget and I click in reset "x" button, the value
continue to change to 0 but when I save the changes with button save,
the value 0 doesn't appear.
The value that appear in input is the last before changes.

How can I correct this bug?

Thanks

Hello Teixeira,

Please validate if the variable that populates the Widget is the same you save changes. 



UserImage.jpg
Teixeira

Hello Bruno Domingues,

Yes, the variable that populates the Widget is the same that I save changes. 

When I inspect input widgets without input mask after I have clicked in reset "x" button, appear the input name="wtNameinput" and the value="123" was clear.
But, when I inspect the input widget with input mask after I have clicked in reset "x" button, appear two input names: input name="wtNameinput_mask" and input name="wtNameinput". The value of first change to "0,00" and the value of second maintain "123".
I think this is the problem. Reset "x" button lost the capacity to clear the value of input name="wtNameinput".

UserImage.jpg
Teixeira

I already tried to use some javascript to add a new reset "x" button but it didn't result. 

Someone had this problem in past? It is possible add javascript in Input Masks code to appear a new reset "x" button?

Thanks

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