Input masks

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

Input masks

Ger G
Hi everybody,
Is there any input masks in orbeon/xforms? I've looked for it but didn't find anything.
I need a mask to force an input to be "## - ######## - #" (where # is a digit). I'll implement it in js if necesary, but seems strange to me that theres nothing already done.

Regards,
German


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Input masks

Alessandro Vernet
Administrator
German,

Ger G wrote
Is there any input masks in orbeon/xforms? I've looked for it but didn't
find anything.
I need a mask to force an input to be "## - ######## - #" (where # is a
digit). I'll implement it in js if necesary, but seems strange to me that
theres nothing already done.
This feature could be exposed through an XBL component, but there is nothing like that at this time. I have to say that doing this is a way that is both generic and user-friendly is a tough nut to crack. What comes the closest to an input mask right now is the currency field (http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components#TOC-Currency), but of course it is specific to entering currency amounts.

So I think you'll need to do some JavaScript for that. And maybe implementing this in an XBL component of your own would be a good idea.

Alex