cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Set a default value for my Drop-down list, why it is not sync with sharepoint

I have the following drop-down list inside sharepoint :-

 

3reds.png

 

but inside power app create form the drop-down is been shown without default value, as follow:-

derraft.png

any advice if powerapp should sync the default value from SharePoint? if not then how i can set a default value for this drop-down?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper II
Helper II

Re: Set a default value for my Drop-down list, why it is not sync with sharepoint

Ah, my code would have only worked if you were manually defining your items.

 

As you're pulling your items from somewhere, I believe this is what you require in your "Default Selected Items" field.

 

First(Choices([@Project].DraftStatus))

View solution in original post

6 REPLIES 6
Highlighted
Helper II
Helper II

Re: Set a default value for my Drop-down list, why it is not sync with sharepoint

The default value in sharepoint lists are only used by Sharepoint when creating new records as far as I believe.  You need to look at the "Default Selected Items" property of your drop down list to have that auto-populate.

Highlighted
Helper II
Helper II

Re: Set a default value for my Drop-down list, why it is not sync with sharepoint

@Slaverty  ok thanks but i can not find  way to set a default value for the drop-down..any advice .

Highlighted
Helper II
Helper II

Re: Set a default value for my Drop-down list, why it is not sync with sharepoint

Yes, the "Default Selected Items" property of your drop down.

 

That is where you set what the default value of a drop down is.

 

Eg, drop down's "Items" property = ["Save As Draft", "Submit to PMO"]
Drop down's "Default Selected Items" = "Save As Draft"

Highlighted
Helper II
Helper II

Re: Set a default value for my Drop-down list, why it is not sync with sharepoint

I tried the following, but i got an error:-

save asdraft.png

Highlighted
Helper II
Helper II

Re: Set a default value for my Drop-down list, why it is not sync with sharepoint

Ah, my code would have only worked if you were manually defining your items.

 

As you're pulling your items from somewhere, I believe this is what you require in your "Default Selected Items" field.

 

First(Choices([@Project].DraftStatus))

View solution in original post

Highlighted
Helper II
Helper II

Re: Set a default value for my Drop-down list, why it is not sync with sharepoint

thanks worked for me

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020 Winner Announced

Check it out!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,211)