Maximum date

The “Maximum date” functionality in the InputWP plugin allows you to set a maximum date that users can select within the date picker. This prevents users from choosing dates that are beyond the specified maximum date. Additionally, you have the option to use the maximum date as the default value for the date picker.

How to use

  1. Accessing the Feature:
    • Log in to your WordPress admin panel.
    • Navigate to “InputWP” in the left-hand menu.
    • Click on “All Events.”
    • Locate the event for which you want to set a maximum date.
    • Click on “View Details” under the “Date picker” section of the event.
  2. Setting the Maximum Date: On the event details page, within the “Date picker” section, you will find an input field labeled “Maximum date” In this field, you can set the maximum date for selection.
    • European Day-Month-Year Format: Use the day-month-year format (e.g., “31-12-2023”) to specify the maximum date. Dates beyond this specified maximum date will be disabled.
    • strtotime Compatible String: Alternatively, input an English string that is accepted by the PHP strtotime function (e.g., “+5 days”) to set a dynamic maximum date based on relative time.
    • Leave Empty for No Limit: If you want to allow users to select any date without restrictions, leave the “Maximum Date” field empty.
  3. Using Maximum Date as Default (Optional): Adjacent to the “Maximum date” field, you will find a checkbox labeled “Use Maximum Date as Default.” By default, the plugin considers today’s date or the minimum date as the default value. Enabling this option will set the maximum date as the default value in the date picker.
  4. Saving Changes: After configuring the maximum date and the default option (if desired), click on the “Update” button to save the changes you’ve made, including the maximum date settings.

Benefits of Setting a Maximum Date and Using as Default

  • Constrained Scheduling: By specifying a maximum date, you ensure that users can only select dates that fall within a certain range, promoting controlled and relevant scheduling.
  • User Convenience: Enabling the “Use Maximum Date as Default” option can provide users with a convenient default selection that aligns with your event’s time frame.

Using the “Maximum date” feature and the option to use it as the default, you can fine-tune the date picker to cater to your event’s requirements.

If you have more questions, use the public forum (for the Basic plugin), or submit your support ticket (for PRO users).