Running webclient on an iPad is there a way to force the keyboard displayed to show numbers and punctuations instead of letters? Now we always have to change from letters to numbers for number-fields. It would be nice when this was done automatically.
Hi Michel,
I don’t think you can right now.
iOS does support multiple keyboards and show these depending on the form-field input types. But since the the standard input types are all text input fields you only get the full keyboard. Webkit (in iOS) does have special non-standard input types that will show different keyboards or even (date/time) pickers.
See http://developer.apple.com/library/safa … Types.html
I suggest you file a feature request.
Thanks for the info. Is for instance ```
Hi Michel,
m.vanklink:
Thanks for the info. Is for instance ```
There is some support for it (see link)
http://caniuse.com/input-number
m.vanklink:
Thanks for the info. Is for instance ```
Yes. HTML5 spec.
We’ve been doing keyboards for a while now by hand. You change the input type with jquery + web client utils to anything you want and get a ton of different keyboards – there are a lot of options. However, you need to adjust the following Wicket function so your new type is picked up by Servoy (otherwise your input field gets disconnected from Servoy):
Wicket.Form.serializeInput = function(input) {
var type = input.type.toLowerCase();
if ((type == "checkbox" || type == "radio") && input.checked) {
return Wicket.Form.encode(input.name) + "=" + Wicket.Form.encode(input.value) + "&";
} else if (type == "text" || type == "password" || type == "hidden" || type == "textarea" || type == "search") {
return Wicket.Form.encode(input.name) + "=" + Wicket.Form.encode(input.value) + "&";
} else {
return "";
}
Some ideas on how to do this: viewtopic.php?f=34&t=19075
The next minor dot release of Data Sutra has all of this abstracted out so all you have to do is assign key=“keyboard” to the designTimeProperties of any field. The value you give the key will determine the keyboard used for input (examples: url, tel, search, number, datetime, email, date, number ranges). Pretty slick
Email:
[attachment=2]email.png[/attachment]
Telephone:
[attachment=1]tel.png[/attachment]
URL:
[attachment=0]url.png[/attachment]
Date:
[attachment=2]date.png[/attachment]
Time:
[attachment=1]datetime.png[/attachment]
Number:
[attachment=0]number.png[/attachment]
Really nice! But from this I understand that it would be very easy for Servoy to implement this. And why wouldn’t they, it even follows the html 5 standard. So I filed a feature request: https://support.servoy.com/browse/SVY-4331
m.vanklink:
Really nice! But from this I understand that it would be very easy for Servoy to implement this. And why wouldn’t they, it even follows the html 5 standard. So I filed a feature request: https://support.servoy.com/browse/SVY-4331
Placeholder technique posted July 30, 2012: viewtopic.php?f=2&t=18554
Placeholder property implemented in Servoy March 8, 2013: http://wiki.servoy.com/display/public/D … is+release





