Work Item Attributes : How to disable past dates from a calendar to choose from
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?
One answer
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
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
Comments
Shuchi Arora
Oct 08 '15, 10:51 a.m.Hi , can anyone please help me with the above query.
Thanks in advance!