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.
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.
Fubar
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43