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

How to set a default value for a dropdown (linked to a sharepoint field)

Hi,

i want to set "current year" as default value in a dropdown field.

capture.png

When I write the function now() in "Default", I get the following error: record value is required.

How can i set "current year" as default value in this field?

Thank you! 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: How to set a default value for a dropdown (linked to a sharepoint field)

@luis82 

Are you using a SharePoint Choices field to display the options for Year?

If yes, put this code in the Default field

{Value: Year(Today())}

 

If no, I will need details on the data you used to populate the Items property of the control

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: How to set a default value for a dropdown (linked to a sharepoint field)

@luis82 

Are you using a SharePoint Choices field to display the options for Year?

If yes, put this code in the Default field

{Value: Year(Today())}

 

If no, I will need details on the data you used to populate the Items property of the control

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

Highlighted
Helper I
Helper I

Re: How to set a default value for a dropdown (linked to a sharepoint field)

@mdevaney Thank you!

everything works fine! 😁

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

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 (7,029)