Replace Input Text with Combobox In PowerApps Edit Form

Introduction

In this article, we will learn PowerApps edit form customization. We will specifically customize text input datacard and use combobox instead.

Usecase

As you know if a column in SharePoint list with type single line text, PowerApps by default use textinput as datacard, but sometime we required combobox to be used instead of it.

Prerequisite

Sharepoint list with single line of text column.

Steps

  • First and basic step is to create new PowerApps
  • Add datasource as SharePoint list that we have just created

Add edit form in screen and set datasource as SharePoint List

Click on edit field of edit form and add SharePoint column with single line of text. In this case, I have added country column.

Remove default text control and add combobox in edit form datacard, when you remove default datacard then you will find some errors but don't worry set below properties which solve the errors.

Control Name Property Value
ErrorMessage3 Y ComboBox1.Y + ComboBox1.Height
ComboBox1 Items ["Australia","Canada","India","USA"]
ComboBox1 DefaultSelectedItems {Value:Parent.Default}
Country_DataCard1 Update ComboBox1.Selected.Value

Save the app, and you have now replaced textinput control with combobox.


Similar Articles