Number Entry: "e" is possible

Hi, in a “number entry” component, I managed to enter an “e”.

image

Cheers

is that because numbers like 1e6 are valid?

No its because Glide is not supporting validation yet

When you paste text with an ‘e’ in it along with numbers into a number entry component, it appears to drop the text and only keep the ‘e’ along with numbers. I’m also leaning towards an (e) exponent value as well.

I tried 1e3 to see if it would result in 1000, but instead got 13. The browser’s built in validation for numeric textboxes possibly accounts for exponent values, but it looks like glide throws the char values away.

1 Like

Hi @AyS_0908,

You’ll have to do the validation yourself prior to accepting the submission.

Let me know if you need some help getting started.

So, do you think that it is probably a (little) bug?

Thanks @Cmstewart42, I had no special issue with this, just checking/informing about a potential little bug

1 Like

Maybe, but probably more of a browser spec for numeric entry.

https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#floating-point-numbers

Plus, also consider that on many devices, at least Android anyway, the only keyboard that shows up for numeric entry is the number pad. In my case, the only way to enter an e is via copy/paste and it just be prior to any numbers, otherwise it’s thrown out. There are other rules, but it depends on the HTML spec for numeric entry.

1 Like

I’m able to enter any letter or character in the Number Entry field when using from my iPhone.

BUT I cannot enter letters or symbols when using the browser, i.e., the Number Entry field only allows numbers when using a computer, but doesn’t when using an iPhone.

I’ve also found that this field type allows for empty submissions when the field is required.

1 Like

I also have this problem. iphone users are able to enter text into a number entry field. Then if they submit a form with this, that entry comes through as a blank. Android does not allow the text keyboard to come up (for number entry), which is great.

Yes, as Jeff pointed out earlier in this thread that’s probably down to specific browser behaviour, which we can’t control.

If you need more robust data validation then the best way is to use a custom form and roll your own validation rules.

1 Like