Today I’ll explain how to use PowerApps' Text input Control and its commonly used properties.
[Intro Video]
Hi, this is Mike Negami, Lean Sigma, Black Belt.
From the operation screen, click ‘Insert’ and ‘Text’.
You’ll see ‘Label’ and ‘Text input’ Controls, which you’ll frequently use.
You can simply write texts in the Label Control, but today's theme is the other one, the Text
Input Control.
It allows the user to enter their information and the app can use that information to do
other processing.
In a simple example, prepare two Text input and one Label Controls.
In the Label, let’s output the total value of both the values entered in the Text input
Controls.
In the Label’s Text property, I put ‘TextInput1.Text+TextInput2.Text’.
A label name and ‘.Text’ means the content of the label.
In Preview, enter numbers in the Text input Controls, then you’ll get their total in
the Label.
When you change the inputs, your total is recalculated automatically like Excel.
Select each control and click the down arrow on the formula bar, then you’ll see many
properties for each control.
At first, you only need to remember what you use frequently.
The first ones are the ones we use the most, the OnSelect and OnChange properties.
The action of the formula written there will be triggered when the user taps the control
with OnSelect and when the state of the control changes with OnChange.
Since most of the controls have these properties, I’ll go through them in depth in other videos.
The next one is the Visible property.
If you put ‘false’ there, it will be hidden.
You can also choose it from the tree on the left even if it’s hidden.
You can un-hide it by putting ‘true’ there.
Since mobile apps are on a small screen and you want your apps to be intuitive, this feature
is essential.
I’ve made a detailed video about this separately, so please take a look at it later.
If you put text in the Default property, the text will appear in the control when you open
the screen for the first time.
If you put text that the users use most often, it’ll be helpful.
Also, instead of that, you can use the HintText property too.
This is initially grayed out, but as soon as the user taps on it, it will be in an input
state, so you can give instructions indirectly to the user.
I also often use the Mode property.
You can change the display mode by putting ‘SingleLine’ or ‘MultiLine’ there.
If users might enter long sentences, put MultiLine.
Then, they will also be able to add a new line in the box.
If you put ‘Number’ in the Format property, users can only enter numbers so that you can
prevent users from making entry mistakes if you want to allow the users to enter only
numbers.
If you put ‘true’ in the Clear property, [x] will come out after the user's entry and
they can delete the entry easily just by clicking the [x].
I explained a lot about the Text input Control today.
I put a link to Microsoft’s official page about the Text input Control in this video
description, so please refer to it.
Thank you very much for viewing.
Please click the ‘Subscribe’ button.
Also click and watch my other related videos.
Thanks.