Skip to main content

How to use the input type property in Sketchware

At times you want to control what kind of data a user can put in an edittext field.

If a user inadvertently adds a letter to a field that is supposed to do calculations, this might cause your app to crash. A good way to avoid this is by using the input type filter.

This tutorial will take you through the various input type options and what they do.


Where to find the input type option

On your Sketchware project screen add an edittext to your project. Click on this edittext as shown below to open the properties menu. 

To locate the input type menu, simply scroll to that option  as shown below.


Find the input type property




input type options


The input type property in Sketchware currently has six six options. These are text, number signed, number decimal, number signed number decimal, phone and password. 

Each of these causes your keyboard or edittext field to behave a certain way.

text

This option will allow you to enter text characters which include letters, numbers, symbols and even emojis. When you choose this option your keyboard will look as shown below.

text option


numberSigned

This option only allows you to enter only numerical values and a negative(minus) sign. These are particularly helpful in scenarios whereby users are entering data repetitively...  
numberSigned


numberDecimal

This is similar to number signed but the difference is that it comes with a decimal comma instead of a minus sign. Thus the keyboard will look as shown below if this option is chosen.

numberDecimal


numberSigned|numberDecimal

This is a combination of the previous two... number signed and number decimal. It comes with both a decimal comma and a negative sign.

numberSigned numberDecimal


Phone

This option enables you to enter data that would work when using your phone or ussd. This is a limited combination of numbers, letters and a few symbols. The keyboard will look similar to the one below.

phone


textPassword

This option does not change the keyboard but it hides the contents of the edittext field. This is useful when creating a password field whereby the user can enter their details without worrying what the person beside them will see. When this is enabled it makes your edittext look similar to the one below whenever data is entered.

textPassword

Using the above options you can determine how users enter data in your app. 

I hope you found this helpful and you will use this in your app.

Comments

Popular posts from this blog

How to easily create background notifications in Sketchware(original)

How to easily create background notifications in Sketchware(original) One of the keys to building a successful app is to find mechanisms that will keep your users engaged. You can do this by using background notifications. This tutorial will show you how to do that in Sketchware. We will cover: 1. How to create notifications in Sketchware 2. How to show these notifications even when the app is closed.

How I got started with Sketchware

Background As I explored the Playstore sometime in June 2018, I stumbled upon an app to create other apps. Out of curiosity I downloaded it, did some research and played around with it. I soon realised I could actually create a “real” app from scratch and make money. See, some years earlier I had downloaded Android studio and done a few lessons on programming. So I had a basic understanding of Java and android programming, but this new app that I had found, used simple drag and drop features and you could actually run the app on your device or send your app to friends in just a few clicks. I was not a professional programmer but using this app I could easily create “proper” mobile apps without cracking my head over code.  You can check out my app made using Sketchware; Business Builder- Small Business Management Suite here . Fast forward to a few months later and I had created an app that I felt was ready for the big leagues… Play Store baby!! Note, that I was at a low point f...

Happy Birthday Memes: Laugh Your Way to Someone's Heart

Happy Birthday Memes: Laugh Your Way to Someone's Heart Introduction Birthdays are a special occasion to celebrate another year of life, and what better way to do it than with a good laugh? That's where happy birthday memes come in! These hilarious images are the perfect way to put a smile on someone's face and let them know you're thinking of them on their special day.