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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DefaultSelectedItems n...
Power Apps
Answered

DefaultSelectedItems not submitting

(0) ShareShare
ReportReport
Posted on by 725

Hi all

In my combobox in my form while in Edit mode,I tried this LookUp('App Functions',Functions.Value = GalleryFunction.Selected.Title) which doesn't give errors, but it does not set the DefaultSelectedItems either. Functions is a lookup column, whereas GalleryFunction.Selected.Title is sourcing from the actual list that has the data.

Data source is Sharepoint list.

The objective is when I select a record in  the GalFunctionSelect gallery that I navigate to my form to enter a new record, but that my combobox is preselected, and when I hit submit button that it saves the default selected item along with the other fields that I  have filled out to my Sharepoint list.

 

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @Corissandageri ,

    As the Functions is a lookup column, the combobox Items property should look like:

    Choices([@'App Function'].Functions) 

    What you provide as DefaultSelectedItem to the same combobox control is an entire row from 'App Functions' that is not quite similar with the Items provided. 

    Your problem will be solved, if you use the following:

     LookUp(Choices([@'App Function'].Functions),Value=GalleryFunction.Selected.Title)

     

    Hope it helps !

  • R Bakker Profile Picture
    725 on at

    Hi gabibalaban

    This works perfectly, now that I know, it seems obvious. Thank you for your time.

  • JHS2019 Profile Picture
    30 on at

    But are you not missing the true/false statement ? mine does not work

  • R Bakker Profile Picture
    725 on at

    What is your scenario?

  • Community Power Platform Member Profile Picture
    on at

    Have one list called case

    Have another list called items

     

    In the items list is a lookup column to the case list, which is an ID column. 

     

    I need to use the ID of the case to match the items in the items list, therefore, every time I make a new Item, it should use the ID from the selected case in a gallery. 

  • R Bakker Profile Picture
    725 on at

    My app has two SP list. In the first list, when a record is generated, the ID column is a ID column, then in my second list the ID column is a lookup to the first list.

  • Community Power Platform Member Profile Picture
    on at

    It is the same in my case with the two list, where one has the ID and the other one looks up the ID. However

     

    It states 11, but not display in the combobox 

    JHS2020_0-1656566417411.png

     

  • GustavoSBastos Profile Picture
    5 on at

    Hi, i know its being a while since the first post, but it can help someone who is iniciating in powerapps. In my case i had a person field and i needed to set the logged user as default in the DefaultSelectedItems parameter. Tried to use the function SearchUser from the Office365Users connector but it was not submitted.

    So i set the register as a Choice register: 
    {
         '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";
         Claims: "i:0#.f|membership|" & User().Email;
         Department: ".";
         DisplayName: User().FullName;
         Email: User().Email;
         JobTitle: ".";
         Picture: "."
    }

    GustavoSBastos_1-1708701774177.png


    Its all about what the field expects to receive. The power apps has limits of how much registers can search with the lookup function.

    In your case try to set as a key-value register like this:
    {
         Id: Gallery1.Selected.'Case ID #'.Id;
         Value: Gallery1.Selected.'Case ID #'.Value
    }

    Should work..

  • FelipeQuagio Profile Picture
    39 on at

    FelipeQuagio_0-1710527804855.png

    Almost three years after being published, this helped me, thank you very much. It worked.

  • GustavoSBastos Profile Picture
    5 on at

    I'm glad that worked and helped you!! 🤝

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 419

#2
WarrenBelz Profile Picture

WarrenBelz 397 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 345 Super User 2025 Season 2

Last 30 days Overall leaderboard