Heads Up: This is the documentation for Joomla 3

We recommend using the Documentation for Joomla 5

It is more up-to-date and extensive. Most of it applies retrospectively to Joomla 3.

Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Additional Date Field Options

This feature is part of the Visforms Subscription and not available in the free Visforms version. It was added to the Visforms Subscription release 3.2.1.

Especially with regards to booking forms the date field configuration options provided by the free component Visforms sometimes do not suffice. As booking forms are mostly created using the Visforms Subscription, we have added some useful date field options to the Visforms Subscriptions, as well. The Subscription provides you with three new options.

  • Set a default value relative to current date
  • Validate user input for a minimum value
  • Validate user input for a maximum value

Subscription Date Field Options

Subscription Date Field Options

Set a default value relative to current date

You can set a default value, that is shifted a fixed amount of days relative to the current date into the future or into the past. Please use the option "Shift date (days)". Enter a digit. You can use a minus in front of the digit, in order to shift the default date into the past.

Validate user input for a minimum and a maximum value

The Visforms Subscription allows you to validate user inputs in date fields for a minimum and/or a maximum value. Please note: It is not possible to disable invalide dates on the date picker. This is really "just" about validation.

There are three different approaches to the date validation

  • Validate against a fix date
  • Validate against a value relative to the current date
  • Validate against a value relative to the user input of another date field

Validate against a fix date

Select the option "A fix date" from the listbox "Minimum date validation"/"Maximum date validation". After that, an input is displayed, where you can enter the fix date, that should be used for the date validation.

Validate against a value relative to the current date

Select the option "Relative to current date" from the listbox "Minimum date validation"/"Maximum date validation". After that, an input is displayed, where you can enter the amount of days, the minimum/maximum date value should be shifted relative to the current date.

Validate against a value relative to the user input of another date field

This validation method can obviously only be used, if you have more than on date field in your form. This kind of validation is useful if you have a booking form with a start and an end date and you want to ensure, that the user selects an end date that lies after the start date.

Select the option "Relative to date in field..." from the listbox "Minimum date validation"/"Maximum date validation". (Visforms creates a matching listbox option for each date field by automatic action). After that, an input is displayed, where you can enter the amount of days, the minimum/maximum date value should be shifted relative to user input of the selected field.

Back to list Find subscription