AnsweredAssumed Answered

Replace dot by comma in form

Question asked by zaert on Oct 18, 2016

Hi everyone,


Today, I want to know if it's possible to dynamically replace dot by comma when user fill in a form. In my form, that's two number fields.


Currently, I have JS who do that well but it not work on all computers of my colleagues (I supposed that's version or compatibility I'm not sure).


So I want to know if you have solution for that problem ?


PS : If someone wants to test JS solution



                 var SomeVariable= NWF$("#"+MyID).val();

                 if(e.keyCode == '46' || e.charCode == '46'){


                           NWF$("#"+MyID).val(SomeVariable+ ',');