Skip to main content


 

Symptoms


Date Picker Control Future Date
 

Diagnoses


How do we disable the Future date from now() in date picker control? We would like to disable the future date from now (), so the user can not select future dates.

 

Resolution

In versions less than 4.6.10 a rule can be added to show a message to the user when a value greater than the current date is added, and then use the execute a method for items that have been changed' Action to clear the calendar control. Unfortunately in 4.6.10 this rule would not render and an error was thrown.

The behavior that was experienced in 4.6.10 is by design. Changes were made to rules between 1.0.6 and 4.6.10 and essentially the 'execute a method for items that have been changed' Action can only be used for Editable/List views and not on a item view hence the error.

The two suggested work arounds in 4.6.10 are to do what we did which was hide a null calendar control and pass that value or just use a empty value transfer data action so a hidden control would not have to be utilized.




 
Be the first to reply!

Reply