Restrict range of dates at Date Picker

Tagged:
  • Vasileios Thanasias
        Has successfully completed the online course Basics (100)
      1 year ago #35467

      hello,  there any way or property to disable the selection of some dates at Date Picker?

      For example I want to enable only dates larger than 18 years

      Moritz Strauss
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
          Has successfully completed the Intermediate Certification
        1 year ago #35645
        Up
        1
        Down
        ::

        As of update 14 (2023-01-18) of the Standard Content we added the properties “minimumDate” and “maximumDate” to the DatePicker and DateTimePicker (OpenUI5 1.96).
        Both properties are strings that are converted to Javascript date objects internally to set the UI5 standard properties minDate and maxDate.

        If you want to allow only dates larger than 18 years you can dynamically calculate the string for the correct date 18 years ago (or in the future) in a Business Object and use the output to set the min/max property of your Picker.

      Viewing 2 posts - 1 through 2 (of 2 total)

      You must be logged in to reply to this topic.