Working with Text Input Control in Microsoft PowerApps

Before reading this article, please go through the important article links given below.

In PowerApps, we can Add the Text Input Control.

Text Input Control

The user can specify data by typing into a Text Input Control. The Text Input Control is used to get the input from the user.

Hover Property of Text Input Control

Hover properties are used when the user hovers over the control with a mouse.

Hover Property

HoverBorderColor

If the user moves the mouse pointer on the control, the color of the control's border will change.

HoverBorderColor

HoverColor

If the user moves the mouse pointer on the control, the color of the control's Text color will change.

HoverColor

HoverFill

If the user moves the mouse pointer on the control, the background of the control's color will change.

HoverFill

Mouse pointer

Follow the below steps to work with Text Input Control in PowerApps.

Step 1. Log into the PowerApps.

After downloading the PowerApps from the Windows store, here we need a Microsoft-related organization’s Office 365 ID (MSDN, Microsoft, Skype, Office 365 etc.,), to log in with it.

PowerApps

Step 2. Create a New App in PowerApp.

After Login, we can see the Dashboard. There we click on the New button.

Dashboard

Step 3. Choose the Blank App.

Blank App

Step 4. Designing the App.

Now, let's start designing the App. On the left side, we can see the Individual Screens for adding our data. On the right side, we see the List of Layouts. In the Top we see the formula bar. There you see the Properties of the screen that you select. On the Right Side, we see the Add Data Source to add the External Data Source.

 Designing the App

Step 5. Drag and Drop the Text Box Control.

  1. Go to the Insert menu then Controls and Drag the Text Control.
    Insert menu
  2. Drop the Text Control on the Screen.
    Text Control
  3. Rename to input first.
    Rename
  4. Drop another text control.
    Another text control
  5. Rename to input last.
    Input last

Step 6. Drag and Drop the Button Control.

  1. Go to the Insert menu then Controls and Drag the Button Control.
    Insert menu
  2. Drop the Drop Down Button Control on the Screen.
    Drop Down Button

Add the Coding

Select the Button and add the following coding to the OnSelect Event

Coding

Collect(Names, { FirstName: inputFirst.Text, LastName: inputLast.Text })

Coding

Step 7. Drag and Drop the Text Gallery Tool.

If you click on the button, the changes appear on the Text Gallery control.

  1. Go to the Insert Menu then choose Gallery and Drag the Text gallery -> Horizontal.
    Text Gallery control
  2. Draw the Text Horizontal control on the screen.
    Text Horizontal

Add Coding

Select the Text Control and change the Items to Names.

Add Coding

Now, Select the first item in the Text gallery and add the ThisItem.FirstName to Text Property.

Text Property

Next, Select the First box and change it to FirstName and the Second box to Last Name in the Property window.

Second box

Step 8. Run the App.

Run app

Output 1. Main Screen

Main screen

Output 2. Enter the Text Box and click on the Add button.

 Add button

Output 3. Data added on the Text Gallery.

Data added

Conclusion

I hope you understand how to add the Text Input Control in Microsoft PowerApps and how to run it.


Similar Articles