Number starting with zero

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

Number starting with zero

mbojja
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

--
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/3febfcc1-34df-4d5a-836c-37af1eae836fo%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Number starting with zero

mbojja
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


On Friday, August 28, 2020 at 9:47:10 AM UTC+8, Mani wrote:
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

--
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/1f1a067d-90e3-4e7b-b622-084e8ef3215co%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Number starting with zero

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

--
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/1599605320872-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet