Hi all friends, I have a question about EditBox. I want use Editbox but only keyboard is numberic (0985634646 not 0546adas0454 ) . I search but no result on forum. Please help me problem solving. Thanks
Hi @ngocanh89,
Can you check once with this code:
this._box.setInputMode(cc.EDITBOX_INPUT_MODE_PHONENUMBER);
Regards,
Gurudath
I think if i use on deveice ediitbox with mode PhoneNumber is good. But when compile on web. I can write character other ![]()
Okay.
Alternative solution: We can make string or regular expression match for inputed key.
1 Like
Hi. Thanks. And I have a question with edibox
Can you help meβ¦