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 / Power App ComboBox not...
Power Apps
Answered

Power App ComboBox not defaulting to selected option when going back to screen

(0) ShareShare
ReportReport
Posted on by 611

I have a combox field in a form that should return to what was selected when a user goes back to the page from a page further on:

 

Screen - scrForm1

Card: ProjDir_DataCard2

-Sends data to App_PAFNewProj_Main sql table in sql server

 

ComboBox: ProjDir_ComboBox

Items - Sort(Filter(EmployeeData, DirectorFilter = "Director"), 'Employee Name')

SelectMultiple - False

Default - blank

DefaultSelectedItems -

If(varFormMode = "edit",
 {ID: LookUp(App_PAFNewProj_Main, ID=varRecord.ID), Value: Gallery_Main.Selected.ProjDirName},
 If(varBackScr2 = "back",
 LookUp(App_PAFNewProj_Main,ID = varRecord.ID),
 Blank()))

Use the gallery if the person is coming from the gallery, if they are using the back button do a lookup. The lookup is what is not working

 

When the form is submitted:

Set(varRecord,Form1.LastSubmit);Navigate(scrForm2_EQRAttach,ScreenTransition.None)

 

Screen 2: scrForm2_EQRAttach

BackButton - Icon7

OnSelect - Set(varBackScr1, "back"); Set(varBackScr2, "back"); ResetForm(Form1); Navigate(scrForm1, ScreenTransition.Fade)

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @TesDA 

    Yes, your DSI (Default Selected Items) property will never match the Items records...

    Your DSI property should be: 

    Coalesce(Parent.Default, Gallery_Main.Selected.ProjDirName)

     

    I hope this is helpful for 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

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

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard