Skip to first unread message

tosto73bs

unread,
Jul 13, 2014, 8:23:43 PM7/13/14
to mitappinv...@googlegroups.com
open the virtual keyboard and accept only numbers 

I have to request the inclusion of a phone number but do not want to see all the buttons I would like to see only the numeric keypad works as when you enter a number in the phonebook official Android 

is possible in the app inventor?

SteveJG

unread,
Jul 13, 2014, 8:27:32 PM7/13/14
to mitappinv...@googlegroups.com
You are using a Text.Box for entering the phone number?
If so, from the Designer screen, look for the Properties bin.   For each text box there is a 
place to  mark a check box to have the pop up only show   NumbersOnly.


Does that work for you?

Regards,
Steve

Stephen Zipprich

unread,
Jul 13, 2014, 8:27:35 PM7/13/14
to mitappinv...@googlegroups.com
In the design screen for the textbox check the Numbers Only box.

Taifun

unread,
Jul 13, 2014, 8:31:25 PM7/13/14
to mitappinv...@googlegroups.com
I just answered the same question some hours ago here https://groups.google.com/d/msg/mitappinventortest/dLxPt6-7QXI/605yW7URFiIJ
Taifun

Advice: Before posting, it's a good idea to search in this forum. Many others have likely run into problems similar to yours. How to search see screenshot.



tosto73bs

unread,
Jul 14, 2014, 9:03:06 AM7/14/14
to mitappinv...@googlegroups.com
you're right I should look for before you ask the question, but the problem is that I do not understand English, so I do not understand if the application has already been made.

tosto73bs

unread,
Jul 14, 2014, 9:06:48 AM7/14/14
to mitappinv...@googlegroups.com
I did not understand as it gets, if you want only numbers in a textbox, simply select "only numbers" and the problem is solved but if the input is asked by a control notifier1 limit myself as the inclusion in just numbers?

SteveJG

unread,
Jul 14, 2014, 9:10:47 AM7/14/14
to mitappinv...@googlegroups.com
Most of us here realize, many developers posting here have English as a second language.    Ask however you can, even respond in your own language and generally you will get a very courteous response.   English is my first language, I can cope in about five other languages so I admire you guys who have to understand the advice some of the forum members give.

You  know know how to look.   If you do not find an answer to your questions, please do ask, someone will provide an answer.

Regards

SteveJG

unread,
Jul 14, 2014, 9:22:38 AM7/14/14
to
@ Tosto ...


Let me try to answer "I did not understand as it gets, if you want only numbers in a textbox, simply select "only numbers" and the problem is solved

I think you figured out how to do that:






 but if the input is asked by a control notifier1 limit myself as the inclusion in just numbers?"

OK ... I think you want to have a message tell the user to "Use only numbers".      Is that correct?       I can show you how to do that with the Notifier component.
Please let me know that is the question you want answered.  Thanks.

One way is to check the textbox for numerical input, if something is typed that is not a digit, then use call Notifier1.ShowAlert
                                                                                                                                                                                                                Notice        "Please use numbers only"   

This will result in a message that will stay on the screen for a few seconds, then disappear.

The other way is to use a complete message dialog, which is slightly more complicated.

Is this answering your new question?

Regards,
Steve
















--Steve


tosto73bs

unread,
Jul 14, 2014, 9:29:45 AM7/14/14
to mitappinv...@googlegroups.com
I refer you to control, "" notifier "" I have to accept only numbers and only then open the keyboard with numeric characters only, do not use the textbox I was already aware of the "numbers only" for a text box to me serves as input from a msgbox notifier. 

Thank you.

SteveJG

unread,
Jul 14, 2014, 9:36:55 AM7/14/14
to mitappinv...@googlegroups.com
OK.      Use the Math Block   is a number?    to check if what is input is a number, if the returned result is false, what was typed in the textbox is NOT a number.

Now,   you need to try some blocks, post an image (jpg or png) and show us what you tried because a picture is a universal language.  :)

--Steve

Stephen Zipprich

unread,
Jul 14, 2014, 2:43:45 PM7/14/14
to mitappinv...@googlegroups.com
I refer you to control, "" notifier "" I have to accept only numbers and only then open the keyboard with numeric characters only, 


As Steve said, you'll need to use the is a number? math block in the AfterTextInput event.  There is no way to specify the notifier text input to be a numbers only text box. 

tosto73bs

unread,
Jul 14, 2014, 3:50:48 PM7/14/14
to mitappinv...@googlegroups.com
understood, I thought you could open the keyboard with only small numbers as is the case for the textbox then I will do so, after checking if the input is a number with math 

Thank you.
Reply all
Reply to author
Forward
0 new messages