Android numeric keypad

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Android numeric keypad

Timo Nisula
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?


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/0e410b0f-b217-41f9-ac83-87906af2447f%40googlegroups.com.

numpad.xml (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Android numeric keypad

Erik Bruchez
Administrator
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/

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583871224077-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Android numeric keypad

Alessandro  Vernet
Administrator
In reply to this post by Timo Nisula
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
--
Sent from: http://discuss.orbeon.com/

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583884213182-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Android numeric keypad

Timo Nisula
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

On Wed, Mar 11, 2020 at 1:50 AM Alessandro Vernet <[hidden email]> wrote:
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
--
Sent from: http://discuss.orbeon.com/

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583884213182-0.post%40n4.nabble.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAKt4_v1-m4XWrtq%2B1vKDyix-T1wf5uFzuiEMMZWDYh1HRjsBSQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Android numeric keypad

Timo Nisula
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




On Thu, Mar 12, 2020 at 12:51 PM Timo Nisula <[hidden email]> wrote:
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

On Wed, Mar 11, 2020 at 1:50 AM Alessandro Vernet <[hidden email]> wrote:
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
--
Sent from: http://discuss.orbeon.com/

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1583884213182-0.post%40n4.nabble.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAKt4_v2ufEuDDb7KnGq_CWpzmWS8xqQ2COy%2BO0Uo_1XpJnRTgg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Android numeric keypad

Alessandro  Vernet
Administrator
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?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1584055114960-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Android numeric keypad

Alessandro  Vernet
Administrator
Hi Timo, just curious: have you found another page where the numeric keypad
works, per my last message?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1585279565308-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet