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 / Dropdown is always sho...
Power Apps
Answered

Dropdown is always showing BrowseGallery.Selected value

(0) ShareShare
ReportReport
Posted on by 117

Hello there,

I have a Sharepoint List that contains a column called Title, I want the entry control of this field to be a dropdown which is populated from a collection, my problem is with the default value of the dropdown. I did the following:

1- Deleted the TextBox on the EditForm and replaced it with 'dropdown'

2- Updated the 'Default' property of the 'dropdown' to Parent.Default

3- Updated the 'Update' property of the parent DataCard to dropdown.Selected.Value

4- The Defualt value of the parent DataCard is ThisItem.Title

5- the 'Item' property of the EditForm is 'BrowseGallery.Selecte'

 

now, when I enter the EditScreen in Edit Mode it is all fine but when I enter the EditScreen in New Mode the dropdown is showing the value of the Title in the 'BrowseGallery.Selected' while it should be blank (I have a blank entry at the top of the column of the collection)

 

I am using RestForm on the OnSuccess event

I tried resting the dropdown manually using UpdateContext({ ResetVar: true }); UpdateContext({ ResetVar: false }) on the OnSuccess event of the EditForm but didn't work

 

The Only workaround that worked is using UpdateContext({ ResetVar: true }); UpdateContext({ ResetVar: false }) on the OnVisible event of the EditScreen which looks very stupid since the value of the BrowseGallery.Selected.Title appears for a second before it gets wiped

 

Any Ideas?

 

Thanks

Alaa

 

Categories:
  • Verified answer
    Alaa-Alarori Profile Picture
    117 on at

    Replying to myself,

    One of the things I was trying is:

    If(EditForm.Mode = FormMode.Edit, Parent.Default, Blank())

    or even

    If(EditForm.Mode = FormMode.Edit, Parent.Default, "")

    but then when I put "1" it all worked fine

     

    If(EditForm.Mode = FormMode.Edit, Parent.Default, "1")

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard