How to Set max Date in Text Input Component?
  • 30 Jan 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

How to Set max Date in Text Input Component?

  • Dark
    Light
  • PDF

Article Summary

To set max Date in a text input component of type 'Date', the user can use the logic displayed in the image:

SetMaxdateLogic

In the above image, the onPageShow script of Homepage has set the 'max' property of the Date component to current date so that the future dates are disabled. The following image displays the output of the logic. 

setmaxdate-preview-new

Note
It is important that the Date is of the format YYYY-MM-DD.






Was this article helpful?

ESC

Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses