Android numeric keypad

4 views
Skip to first unread message

Timo Nisula

unread,
Mar 9, 2020, 6:21:02 AM3/9/20
to Orbeon Forms
Hi,

Should the numeric keypad also work on android? I have tried setup numeric field to be integer and "positive or zero" but still get normal keypad like below.
I have attached my test form. Testing with latest version 2019.2.1.

 

Html input looks following, should the type be number and not text?


numpad.xml

Erik Bruchez

unread,
Mar 10, 2020, 4:13:48 PM3/10/20
to orb...@googlegroups.com
Yes it is meant to work. The code switches the input type to `number` upon
`touchstart` or `focusin`, then switches it back to `text` when done. There
might be a bug.

For reference, the client-side code that does this:


https://github.com/orbeon/orbeon-forms/blob/master/form-runner/js/src/main/scala/org/orbeon/xbl/Number.scala

-Erik

--
Sent from: http://discuss.orbeon.com/

Alessandro Vernet

unread,
Mar 10, 2020, 7:50:15 PM3/10/20
to orb...@googlegroups.com
Hi Timo,

I've tried this with the Android Emulator and Orbeon Forms 2019.2.1, and it
is working there. I imagine you are seeing something different?

numpad.png <http://discuss.orbeon.com/file/t119778/numpad.png>

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

Timo Nisula

unread,
Mar 12, 2020, 6:52:06 AM3/12/20
to orb...@googlegroups.com
Hi Alex,

Yes I see something else, I see normal keyboard with letters.

Here is another sample.

I have setup number box as following
image.png

And when I tested from old Huawei phone (android 6), this is what I get
image.png

Also same kind of keypad if I test with new OnePlus 7Pro (android 10) phone.

Orbeon Forms version is 2019.2.1.

BR,
Timo

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583884213182-0.post%40n4.nabble.com.

Timo Nisula

unread,
Mar 12, 2020, 6:59:30 AM3/12/20
to orb...@googlegroups.com
Update.

I changed phone language/location to English UK (it was Finland) and now its works.
image.png

So problem is when phone is set Finland (Language/Location) then it doesn't work.

BR,
Timo



Alessandro Vernet

unread,
Mar 12, 2020, 7:18:37 PM3/12/20
to orb...@googlegroups.com
Hi Timo,

Does the numeric keypad work for you on that version of Android on any other
page if you set the language/location to Finland? If so, what version of
Android is that?

Alessandro Vernet

unread,
Mar 26, 2020, 11:26:07 PM3/26/20
to orb...@googlegroups.com
Hi Timo, just curious: have you found another page where the numeric keypad
works, per my last message?
Reply all
Reply to author
Forward
0 new messages