Posted 6 November 2023, 10:06 am EST
Hi, is there a way to disable the future date for Date/DateTime parameter so that we can only select a date from the past to today?
Forums Home / ActiveReports / ActiveReportsJS
Posted by: xingyan.jiang on 6 November 2023, 10:06 am EST
Posted 6 November 2023, 10:06 am EST
Hi, is there a way to disable the future date for Date/DateTime parameter so that we can only select a date from the past to today?
Posted 7 November 2023, 6:06 am EST - Updated 7 November 2023, 6:12 am EST
Hi Xingyan,
Unfortunately, it seems that this is not possible with ActiveReportsJS. However, I have created an enhancement request for the same[ARJ-5290]. I will get back to you once I have any information on the same.
Posted 7 November 2023, 12:10 pm EST
Thank you Akshay!
Posted 15 May 2026, 10:39 am EST
Hi Akshay,
Any update to the issue?
Posted 18 May 2026, 2:39 am EST
Hi Xingyan,
As per our development team, for now, it is suggested to just use custom UI for parameter input and then pass the values to the report using the following APIs:
Posted 19 May 2026, 10:22 am EST
Hi Akshay,
Using the custom parameters can set a default date which could be done through the designer, but still can’t disable future dates in the calendar.
Posted 20 May 2026, 3:16 am EST
Hi Xingyan,
It seems there is some misunderstanding. As per the development team’s suggestion, it is requested to use Custom UI for parameter input. So for this you would have to hide all parameters by default(on preview). Then use your own UI to create a parameter panel/dialogue to take user input, and then simply pass the values to the viewer when opening the report.
Regards,
Akshay