• Resolved laudag

    (@laudag)


    It seems that the number fields doesn’t accept decimal numbers. Is there a way to accept them ? In thsi case, may I choose to use “,” instead of “.” to separate decimals (France) ?
    Thanks.

    • This topic was modified 6 years ago by laudag.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Hello @laudag,

    Thank you for reporting the issue. We will be fixing the decimal issue in our next release. Also noted your suggestion for number separator.

    Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Hello @laudag,

    Issue is resolved in our recent release. Please upgrade and check.

    Thread Starter laudag

    (@laudag)

    Well, thanks !
    But still a problem :
    > I tested 3 types of numbers on three numbers fields :
    5 = OK
    6.5 = registred as 0
    8,5 = registered as 8.5 in the admin, but a comma updating the field.

    Sometimes, even in France, specialy if foreigner registrer in our sail race, they write decimal numbers with dot. And on my browser it become a 0.
    Is it possible to use a pattern to only accept numbers and comma ? Or a validation fields thaht accept only commas ?

    The other thing is does the 8.5 will show off with a comma or a dot in the futur list plug in ?

    Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Hello @laudag,

    We are unable to replicate the dot issue mentioned above. Could you please check again ? Also provide us browser details and URL to check if it is a cross broswer compatibility issue. You can use HTML patterns to allow comma and numbers only. Pattern can be configured for text field (Advanced Settings->Input Pattern) from Form builder.

    Thread Starter laudag

    (@laudag)

    I tried fist on firefox, then now on chrome. The same.
    Two things I think :
    first, the computer and the browser are set for a region, for me France, and you USA (I think). So no issue for you with dot, and for me yes.
    Second, when I enter a letter instead of a number, I do’nt have any red validation field, which would be the interest of having a “number “filed when I write a letter.
    Then, a dot, in france, is considered as a texte caracter. Not a comma which is a regular number caracter.

    So when I enter a lettre or a dot, intead of red alert which couldn’t let me following the form, it’s validated and regsiter a 0 instead of this letter or dot. This mean thaht the field is recognized as number filed and refuses letters. But the form let is pass.

    I know I could use a pattern in the advance stting. That why I asked. But trying to understand how to write the pattern “accept only numbers and comma, withou limit of number”, I couldn’t succeed…

    Plugin Author easyregistrationforms

    (@easyregistrationforms)

    You can use input pattern for any text field to allow only number and comma. Here is the pattern:[0-9,]*
    Above pattern will allow only number and comma input.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Decimal numbers’ is closed to new replies.