It's all about the answers!

Ask a question

Work Item Attributes : How to disable past dates from a calendar to choose from


Shuchi Arora (1112) | asked Oct 07 '15, 1:10 a.m.
edited Oct 07 '15, 1:18 a.m.
 
Hi There,

I have an attribute(Due Date) of type Timestamp.
The problem is : the calendar allows me to choose from an old date too.
I wish that the past dates should get disabled when I open the calendar to choose the due date for that work-item.
I know I can validate the due-date in a java-script but is there any other approach already to achieve this?



Comments
Shuchi Arora commented Oct 08 '15, 10:51 a.m.

Hi , can anyone please help me with the above query.

Thanks in advance!

One answer



permanent link
Donald Nong (14.5k614) | answered Oct 11 '15, 10:36 p.m.
edited Oct 11 '15, 10:37 p.m.
The date picker does not accept a range (or min/max values) as a parameter, so it displays all dates it knows about. If you want to restrict the date range, although not ideal, you can consider using the "Constraint Date" kind presentation for the Timestamp attribute. Note that "Constraint Date" is normally for formal planning.
https://jazz.net/help-dev/clm/topic/com.ibm.team.apt.doc/topics/c_schedule_constraints.html

You can open an RFE to request the date picker to have a constraint similar to /dijit/form/DateTextBox.
https://dojotoolkit.org/reference-guide/1.10/dijit/form/DateTextBox.html

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.