The Restrict Date addon by Formrio helps you control which dates users can select when filling out your WPForms forms. It is useful for appointment bookings, event registrations, scheduling forms, and other situations where you need to limit date selections according to your requirements. By enabling this addon, you can configure date restrictions to help prevent users from selecting dates that are not suitable for your form.
Simply enable the addon, add the relevant date field to your form, and customize its settings. Once your form is ready, you can embed it into any WordPress page or post using a shortcode.
Things You Need Before
Before getting started, make sure you have the following plugins installed and activated on your WordPress website:
- WPForms Plugin
- Formrio Addons for WPForms Plugin (Free Version)
Step 1: Enable Restrict Date
First, enable the Restrict Date addon to make its functionality available in the WPForms form builder.
- Navigate to WPForms → Formrio Addons → Addons.
- Search for Restrict Date.
- Enable the Restrict Date addon.
Once enabled, you can configure the available date restriction options for your form.
Step 2: Configure Date Restrictions
After enabling the addon, open a new or existing form to configure its date field.
- Create a new form or open an existing form you want to customize.
- Navigate to the Fields tab.
- Add the relevant date field to your form, or select an existing date field if one is already available.
- Open the field settings and look for the date restriction options provided by Formrio.
- Configure the available restrictions according to your requirements.
- Click Save to save your changes.
Review your configuration to ensure users can select the dates appropriate for your form’s purpose.
Step 3: Embed Inside Any Page or Post
Once you have configured and saved your form, you can display it on any WordPress page or post using its shortcode.
- Open your form in the WPForms builder.
- Click the Embed button.
- Select the Shortcode option.
- Copy the displayed shortcode.
- Open the WordPress page or post where you want to display the form.
- Paste the shortcode into the page or post content.
- Publish or update the page or post.
That’s it! Your form with the date restriction settings is now embedded on your chosen page or post and ready for visitors to use.