Getting option to select only +10 and -10 years in datepicker

WebViewer Version: 11.3.0

Can you reproduce using one of our samples or online demos? Yes

Whenever any date field is configured , in year selection dropdown , only getting options to select +10 years and -10 years from current selected date.

Attaching Screenshot of the issue
https://imagekit.io/tools/asset-public-link?detail=%7B%22name%22%3A%22Screenshot%20from%202025-04-15%2013-40-28.png%22%2C%22type%22%3A%22image%2Fpng%22%2C%22signedurl_expire%22%3A%222028-04-14T08%3A15%3A02.733Z%22%2C%22signedUrl%22%3A%22https%3A%2F%2Fmedia-hosting.imagekit.io%2F206b949db5eb4968%2FScreenshot%2520from%25202025-04-15%252013-40-28.png%3FExpires%3D1839312903%26Key-Pair-Id%3DK2ZIVPTIP2VGHC%26Signature%3DudzFHDDJhKrlYnzMyVNOQiGIisHaJF5FPLdoz0u73jyvoNECc7RJIR2RtPUF-ii3d0z8sD55E6FkOToBLHQwcbRR9Mfbo-MHp4M-gFcJGNp82yhc9tBKt4WcDzOgkGRvaxsO6FviWpjLqyJh7-X8NWIRTW7dNfb01qkRMeBx5wXX6B2TBy5LCajQFNaXxHzVjnfdQChdH4~FcbOM3soOHQZoCB~4~YqVldYvpyoOqnGNBFS7sqfEBGEeq0IX01kxivocm3Dup-VXO8vWtbrCOLHqllsyJL4IBX74wseMvtKfK9W8poyA~3Zh7b6qkLaxnpG~znX-5-0QFt-n67l1tQ__%22%7D

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


The behavior you’re experiencing with the date picker, where only a limited range of +/- 10 years is available, is likely due to default settings or limitations set within the configuration of the date picker component in WebViewer.

Some things you can try:

  • Check if there are any configuration options available for the date picker that might allow you to expand the year range. This might involve modifying settings in the PDF form field or within WebViewer’s configuration files.

  • Consider using custom JavaScript to modify or extend the functionality of the date picker if the default configuration does not meet your requirements.

  • Verify if there are updates or patches available in the latest version that address this limitation.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Hello aaishwaryapardhi,

You can adjust this with the DatePickerOptions: Apryse WebViewer Class: DatePickerWidgetAnnotation
Specifically the yearRange option.

Best regards,
Tyler

Hi , is there any sample code which i can refer to check how to use this exactly? Also how can i figure out that the annotation used is for date type?