Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
1.4k views
in Power Apps by 22 23 29
How can I prompt an error message for a comboBox peoplePicker if a user manually inputs a name without selecting a choice from the dropdown menu?

1 Answer

2 like 0 dislike
by 48 54 94
selected by
 
Best answer

How to prompt an error message for a comboBox people picker in PowerApps?

To prompt an error message for a comboBox peoplePicker in PowerApps if a user manually inputs a name without selecting a choice from the dropdown menu do the following:

  1. Set the Text property of the error message Label to the error message that you want to show t the user for example "You must choose Name from the dropdown"
  2. In the visible property of the error message Label set it to this formula
     If(
    IsBlank(DataCardValue47.Selected),
    If(
        Len(DataCardValue47.SearchText) > 0,
        true,false
    ),
    false)

user manually inputs a name without selecting a choice from the dropdown menu, the error message will appear

by 22 23 29
0 0
can i did it on the onchange property?
by 48 54 94
0 0
yes you can but set the true or false to a variable and set the visible property to error message to this variable
If you don’t ask, the answer is always NO!
...