DatePicker Year Range | XM Community
Skip to main content

Hi everyone, thanks for your help.
I'm using the DatePicker from the Qualtrics Library, and I want to modify it for a user to select 4 dates. I can add statements and the datepicker functionality remains intact. However, when I try to change the range of possible years in the dropdown menu, it only applies to the first statement/row - the rest still show the original default range instead of the one I'd like.
Imported from Qualtrics Library, added statements to allow for 4 dates instead of one:
2021-09-14_12-21-09.pngJavascript template tells me to simply change the yearFirst and yearLast variables, and don't touch the rest. This works for the first row (Testing Date 1) to limit available years to just 2021 and 2022, but the rest of the year dropdowns still show a 1900-2049 range.
2021-09-14_12-21-43.png

for month, day and year try to get the main class name and not just QID. Try by picking some '.Selection' class, since all of them fall under same drop down and column they will have same parent class. Then apply those to yours 'mo', 'day', 'yr' variables.


Leave a Reply