Skip to main content
LinkedIn
Copied!

Table of Contents

Restricting the years displayed

Applicable to Theme UI-Kit applications

To make it easier for users to select valid dates, you can restrict the number of years that are displayed relative to, and including, the current date. At run time, only values that fall within the range of dates that you specify are visible on the calendar widget or available by using spinners or drop-down fields.

In the layout of the form that you are editing, complete the following task: Adding a Date time control to a layout.
  1. Click the control, and then click the View properties icon.

  2. For the Display Range option on the Presentation tab of the Properties panel, specify a number of years in the Previous __ years field, the Next __ years field, or both.

    By default, both fields are set to 10 years.
    When the Display mode field is set to Text Input + calendar and an application user enters a date that is outside the range of years that you specify with the Display Range option, the range of years is updated automatically to include a range of years starting from the entered year or ending at the entered year.
  3. Click Submit.

Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us