Roger Daley Well-Known Member Licensed User Longtime User Jul 9, 2015 #1 Hi All Is there a way to limit Edittext input to letters and digits only [IE No special charactres that may be rejected as a file name]? Regards Roger
Hi All Is there a way to limit Edittext input to letters and digits only [IE No special charactres that may be rejected as a file name]? Regards Roger
Erel B4X founder Staff member Licensed User Longtime User Jul 9, 2015 #2 See the custom filters section: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content Upvote 0
See the custom filters section: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content
Roger Daley Well-Known Member Licensed User Longtime User Jul 9, 2015 #3 Thanks Erel, I've already been there twice, I seem to be missing something. It gives promise of doing what I want but lacks details for the uninitiated. Regards Roger Upvote 0
Thanks Erel, I've already been there twice, I seem to be missing something. It gives promise of doing what I want but lacks details for the uninitiated. Regards Roger
Erel B4X founder Staff member Licensed User Longtime User Jul 9, 2015 #4 Something like: B4X: IME.SetCustomFilter(EditText3, EditText3.INPUT_TYPE_TEXT, "0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZ") Do note that it is the responsibility of the soft keyboard app to respect this filter. So your app should expect invalid inputs as well. Upvote 0
Something like: B4X: IME.SetCustomFilter(EditText3, EditText3.INPUT_TYPE_TEXT, "0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZ") Do note that it is the responsibility of the soft keyboard app to respect this filter. So your app should expect invalid inputs as well.
Roger Daley Well-Known Member Licensed User Longtime User Jul 9, 2015 #5 Ah! The light bulb has turned on. Thanks Erel, Now that I can see it, I can't understand why I couldn't see it before. Regards Roger Upvote 0
Ah! The light bulb has turned on. Thanks Erel, Now that I can see it, I can't understand why I couldn't see it before. Regards Roger