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 / Dropdown default value...
Power Apps
Answered

Dropdown default value in PowerApps

(1) ShareShare
ReportReport
Posted on by

I have created an app using SharePoint list as a source.

In  SharePoint list, i have set some default values like date is set to today's date, drop down has some default value.

When i customize this form into app, default value doesn't appear.

Can you please advise how to display default as showing this in SharePoint list ?

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Default values in the SharePoint list don't carry forward to the field controls that are created in PowerApps. for example if I had a Start Date field I wanted to default to the current date I could add this formula to the Default property of the datacard containing the "Start Date".

     

    If(
     SharePointForm1.Mode = FormMode.New,
     Now(),
     ThisItem.'Start Date'
    )

    You will need to tweak this formula based on the name of your column name and field type.

  • Verified answer
    v-xida-msft Profile Picture
    on at

    HI @Anonymous ,

    Could you please share a bit more about your scenario?

    Do you want to set a Default value for the Date field and Dropdown field in the Edit form of your app?

     

    Currently, the Default property of the fields in a SP list would not be applied to a canvas app. If you would like the Default value of the fields you set within your SP list could be displayed well in your canvas app or custom form, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    As an alternative solution, you could set the Default value for corresponding fields in the Edit form of your app directly. I have made a test on my side, please take a try with the following workaround:8.JPG

     

    9.JPG

    Set the DefaultDate property of the DatePicker control within the Due Date Data card to following:

    If(SharePointForm1.Mode = FormMode.New, Now(), Parent.Default)

    Set the DefaultSelectedItems property of the Combo Box within the Status Data card to following:

    If(
    SharePointForm1.Mode = FormMode.New,
    {
    Value: "Pending"
    },
    Parent.Default
    )

    Note: The Status column is a Choice type column on my SP List.

     

    Please also check and see if the following blog would help in your scenario:

    https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    Thanks so much for your help.

    I was able to default the date and drop down by using the same syntex you have provided.

  • Community Power Platform Member Profile Picture
    on at

    Thanks Jeff.

    I just used this formula in the default property and it worked perfectly fine.


    If(SharePointForm1.Mode = FormMode.New,

    Now(),

    Parent.Default)

  • Pug Profile Picture
    2 on at

    Hi, can you confirm if this will work in a choice field?

  • DB7 Profile Picture
    45 on at

    Hello Jeff,

     

    Actually your solution worked when I applied it to Default property as listed below:

    If(SharePointForm1.Mode = FormMode.New, {Value: "New"}, ThisItem.Status)

     

    Thank you for your assistance, 

     

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hey, for me doesn't appear the 'Default Selected Items' in the properties of Dropdown, just 'Default', what I supposed to do in this case?

  • mbhatt Profile Picture
    525 on at

    Hi @Jeff_Thorpe 

    I have same problem 

    i created canvas app DataSource from Sharepoint list and there is choice column from list and now for example i have choice column show these 5 category (1 HR departments, 2 is department, asset department, 4 Qa department ,5 Opening department. )now i want to customize like this  i set 2 button on screen 1 which is for create form on screen 2 .  1 button work for 4 categories only and another button work for only 1 category how do i set the formula when i will click on button1 will redirect on new form and only show opening department by default and when i click on button 2 will redirect on same form screen but show me all category ? please suggest me how do is set the formula ? 

  • tonyareznor Profile Picture
    14 on at

    This worked for me

    Picture1.png

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