cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

O360 AD User Search No Longer Blank by Default?

I have built an app that our HR uses to alert IT about a new employee. It includes an AD lookup for HR to select the new employee's manager.

 

The app has a label field called ManagerName with Text property = UserList_1.Selected.DisplayName. UserList_1 is a gallery with Items property = Office365Users.SearchUser({searchTerm: SearchManager.Text}) and the Default property = Blank().

 

Up until a few days ago, the ManagerName label was blank when the app was first launched, and only had a name once someone was selected from the gallery. However, after I edited a different part of the app on Monday and save/published the changes, now the ManagerName label field has the first person in the gallery's name in it when the app is launched. How can I get this back to being blank until the HR person actually selects someone from the gallery?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Based on my experience,  the default value of the Gallery.Selected should be the first item if there is no user selection.

How about changing the Default property to

""
instead of

Blank()

?

If that will not work, then please consider switch the Default property to a variable, and update teh variable value with the Gallery.selected under the OnSelect property within an icon configured inside the Gallery.

And under the OnVisible property of the screen, update the Variable value to blank() or "", doing it in this way should be able to have the ManagerName to show blank() if no user interactions.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Based on my experience,  the default value of the Gallery.Selected should be the first item if there is no user selection.

How about changing the Default property to

""
instead of

Blank()

?

If that will not work, then please consider switch the Default property to a variable, and update teh variable value with the Gallery.selected under the OnSelect property within an icon configured inside the Gallery.

And under the OnVisible property of the screen, update the Variable value to blank() or "", doing it in this way should be able to have the ManagerName to show blank() if no user interactions.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (9,091)