web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Data (combo box) does ...
Power Apps
Unanswered

Data (combo box) does not appear when i click arrow button in gallery

(1) ShareShare
ReportReport
Posted on by 12

Hi, I just make a new form from my share point list and I'm using edit form to create the form. The default mode of the form is 'New'. However for the name instead of asking user to input their name manually, I'm using combo box Office365users to extract the data of the users. So that when users select their name, automatically their job title, email, and department will appear. They just need to key in other things. So when i click submit button, the data enter on my share point list, and when i create a vertical gallery, the data appear. However when i click on the arrow button on the gallery, my input data name, job title, email and department disappear, but other data that were input manually appear on the screen. The data that were not appear is name (where I'm using combo box office365users), job title, email, department(Where when user select their name, this data will appear automatically). Can someone help me how to solve this problem, Thank you so much.

 

This is what I mean, the data not appear:

Salina_Qadesyah_0-1699877300027.png

Salina_Qadesyah_1-1699877359019.png

The red star is the one where users key in by themselves. All the data that were key in manually without using combo box or link to combo box, appear normally. Just the data that use combo box and link to combo box are not appear

Categories:
  • M_Ali_SZ365 Profile Picture
    1,110 on at

    HI @Salina_Qadesyah ,

    It seems like the combo box data is not persisting when navigating in the gallery. To resolve this:

    Ensure the combo box is set to DisplayMode.Edit in the gallery.

    If using a form, set the combo box's Items property to the data source that contains user information.

    On the combo box OnSelect property, use a formula like:

    Set(UserInfo, Office365Users.UserProfileV2(ThisItem.EmployeeEmail))

    Replace EmployeeEmail with the appropriate field from your data source.

    Set the form controls (name, job title, email, department) default properties:

    Default: If(IsBlank(UserInfo.DisplayName), Parent.Default, UserInfo.DisplayName)

    Repeat this for each corresponding field.

    This should ensure that the combo box data persists in the gallery and displays correctly in the arrow button view.

    Fuel our success! 🚀 Give a thumbs up and click 'Solution Accepted' to supercharge our community. Your actions speak volumes!
    Warm regards,
    Muhammad Ali

  • Salina_Qadesyah Profile Picture
    12 on at

    Hi

  • Salina_Qadesyah Profile Picture
    12 on at

    Hi @M_Ali_SZ365 
    First of all, thank you for your help, however i got this error when I try to apply the second code that you gave. I already applied the first code that you gave.

    Salina_Qadesyah_1-1699886559895.png

     

    This is the code that I'm using right now, is it possible to keep it or do I need to change it?

     

    For combo box, I'm using this code: at Items

     

    Office365Users.SearchUser({searchTerm:ComboBox1.SearchText})

     

    So after user select their name all other information (email, job title, department) will be display and this is the code that I'm using to display it: at Defaults

     

    Concat(ComboBox1.SelectedItems,JobTitle)

    Is it because I'm used the wrong code, so that's why the data are not display when click on the galley arrow? 
    If yes may I know how to solve it.

    Once again thank you so much for your answer.

  • M_Ali_SZ365 Profile Picture
    1,110 on at

    @Salina_Qadesyah ,

    Combo Box Items Property:
    Adjust the combo box's Items property to fetch user profiles using Office365Users.UserProfileV2. This ensures that the detailed information is available.

    Office365Users.UserProfileV2(ComboBox1.SelectedMail)

    Default Properties of Form Controls:
    Set the default properties of your form controls (name, job title, email, department) like this:

    Name (assuming DisplayName is the property in the user profile):

    If(IsBlank(ComboBox1.Selected), Parent.Default, ComboBox1.Selected.DisplayName)

    Job Title:

    If(IsBlank(ComboBox1.Selected), Parent.Default, ComboBox1.Selected.JobTitle)

    Email:

    If(IsBlank(ComboBox1.Selected), Parent.Default, ComboBox1.Selected.UserPrincipalName)

    Department (replace 'Department' with the actual property from the user profile):

    If(IsBlank(ComboBox1.Selected), Parent.Default, ComboBox1.Selected.Department)

    Ensure DisplayMode in Gallery:
    Make sure that the combo box's DisplayMode property within the gallery is set to DisplayMode.Edit.

    These changes should he

    Fuel our success! 🚀 Give a thumbs up and click 'Solution Accepted' to supercharge our community. Your actions speak volumes!
    Warm regards,
    Muhammad Ali

  • Salina_Qadesyah Profile Picture
    12 on at

    Hi @M_Ali_SZ365,

    I still get an error when I try to implement the solution that you give.
    This is the error:

    Salina_Qadesyah_1-1699929851928.png

    The issue is when I try to implement this code:

     

    Office365Users.UserProfileV2(ComboBox1.SelectedMail)

     

    The error is only when I try to implement this...for other code that you help there is nothing wrong.

    And may I know, for the code that you give for combo box, 

    ComboBox1.SelectedMail

    What does this do/mean? Is it for user to select their email?

    Because if according to the code that I'm use before, That code will list down all the name of the employee.
    This is the code of the combo box where it list down the name of the employee:

    Office365Users.SearchUser({searchTerm:ComboBox1.SearchText})

     
    Sorry for the inconvenience and thank you for your help

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard