Number starting with zero

8 views
Skip to first unread message

Mani

unread,
Aug 27, 2020, 9:47:10 PM8/27/20
to Orbeon Forms
Hi guys - Is there a way to not automatically clear '0' if a number value is like '01234'

I'm using a number control to enter a credit card number with a prefix 1234 XXXX. The users will be entering the other 8 digits which should allow a number starting with '0'

Thanks

Mani

unread,
Aug 30, 2020, 11:04:36 PM8/30/20
to Orbeon Forms
Hi Alex - Is there a way to fix this leading zero issue. And also how do we change the number format to something like xx xxxx.

Cheers

Alessandro Vernet

unread,
Sep 8, 2020, 6:48:43 PM9/8/20
to orb...@googlegroups.com
We had a discussion with Manish, and a case like this calls for the regular
text field to be used, with a regex or similar for validation. Unfortunately
the plain text field doesn't support showing a prefix or suffix, like the
number field does, so we've added a +1 on request for enhancement #2324.

https://github.com/orbeon/orbeon-forms/issues/2324

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/
Reply all
Reply to author
Forward
0 new messages