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 Pages / Creating a year field ...
Power Pages
Unanswered

Creating a year field in form

(0) ShareShare
ReportReport
Posted on by 323

I am trying to create a field that will capture just the year. I have added a date field. But, is there a way to convert the date picker to a year picker or at least only display the year even though a date was picked.

 

prathyoo_0-1689075568154.png

 

Categories:
I have the same question (0)
  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    You can change the format of the selected date, but that is the closest you would be able to get (this only changes the display the actual value is still a date)

    $('#yourdatefield').next().data("DateTimePicker").format('YYYY');

     

    You are probably better off just creating a new Table load it with the years and then put a Lookup to the table on your dataverse form, then in the Portal forms's metadata create an item for the lookup field and set it to render as a dropdown.

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard