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 / Powerapps - ComboBox V...
Power Apps
Answered

Powerapps - ComboBox Value display

(0) ShareShare
ReportReport
Posted on by 34
ListA 
- StudentName (data type = text)

ListB
-StudentID (data type = lookup, lookup source from ListA.StudentName)
 
In Powerapps,
Set(selectedStudent = 'student1')

student1 is one of the value in listA
 
In EditForm:
comboBoxStudentID - Data Source from listB

how to hit the outcome as per below?

Outcome for comboBoxStudentID:
DefaultSelectedItems = selectedStudent
Items = selectedStudent
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    Based on your values, I believe the Items of comboBoxStudentID should be
    Choices(ListB.StudentID)
    and if you are going to set the Variable selectedStudent to a name in ListA.StudentName, the DefaultSelectedItems should be
    {
       Value: selectedStudent,
       Id:
       LookUp(
          ListA,
          StudentName = selectedStudent
       ).ID
    }
    I will add a further note that SharePoint Lookup columns are mostly unnecessary with Power Apps and have the potential to cause you unwanted and unneeded complexity and restrictions - I have never used them. It is generally a better idea to get the required field Items directly from the second list with Power Apps and write back to a Text column.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee

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
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard