Special Character for input box

Hi Webix team,

How to avoid perticular special characters in input box(like I dont want ', *, \, / )and the mxlength 255.

Thanks,
Mira Karale

maxlength - see https://snippet.webix.com/1ye9gz2i

Formatting
https://docs.webix.com/desktop__text.html#settingnumberformat

That below needs PRO version
https://docs.webix.com/desktop__formatted_text_inputs.html

Other method is to use onKeyPress event and remove those chars manually:
https://snippet.webix.com/00alo0un

@Jacekk015

Thanks for reply.
But I just don’t want it for number. I can use number, characters, speacial character excluding ', *, \, /

So use that below - you need to tune it to your needs:
https://snippet.webix.com/00alo0un

You need to get code returned from webix function for each key and just prevent it.

@Jacekk015
Thanks for reply.

https://snippet.webix.com/aysw3gbk

In this snippet I implemented it but its not working for * . Maybe because I am pressing shift + *.

Thanks,
Mira

More compact version + with SHIFT
For SHIFT + * you need to block 8 key there - which is 56 in ASCII
Use to check: http://keycode.info/
Remember that you also have * [and others] on numpad keyboard.
These have other keyCode’s
https://snippet.webix.com/sc6hsguw

@Jacekk015
Thank you so much :slight_smile: