after selecting year from the dropdown list..., we should able to see the calender of that selected year(in dropdown) &within that calender we should able to months forward and backward & also we shoud able to select a date in particular month..., how to get it done..
Discussion posts and replies are publicly visible
Showing only specific year calendar is not available as far as I know.May be you can try doing work around by adding a validation. Have a look at below code, as soon year has been picked we are defaulting to first day of that year, if they select other year's of date you can show them a validation.
a!localVariables( local!year, local!date, { a!dropdownField( value: local!year, saveInto: { local!year, a!save(local!date, date(local!year, 1, 1)) }, /* give all years using logic*/ choiceLabels: { 2019, 2020, 2021 }, choiceValues: { 2019, 2020, 2021 }, placeholder: "--", ), a!dateField( label: "Select a date", value: local!date, saveInto: local!date, validations: if( isnull(local!date), "", if( year(local!date) <> local!year, "Please select date of year " & local!year, "" ) ) ) } )