> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 日付 field 要素のルールの設定

> Date Interval ルールを使用して日付 field の許容日付を制限します: Date Interval Rule ダイアログで範囲を作成、名前変更、編集します。

ルールを使用して、日付 field 要素で許可される値に制約を設定できます。

ルールを追加するには、[要素のプロパティ](/ja/flexi-capture/form-designer/element-date-field-edit) の Constraints タブにある Add... ボタンをクリックします。開いた Validation Rule: Select Rule Definition ウィンドウで、Date Interval ルールのリストにある Create New Rule ... アイテムをダブルクリックして新しいルールを作成します。Date Interval Rule ダイアログが開きます。

<img src="https://mintcdn.com/abbyy/8aWHPAJyzWmTqglX/images/flexi-capture/form-designer/interval_rule.gif?fit=max&auto=format&n=8aWHPAJyzWmTqglX&q=85&s=0b25884417e62a9b3fb8fd2c872134ca" alt="" width="335" height="330" data-path="images/flexi-capture/form-designer/interval_rule.gif" />

**名前の変更...** — このボタンをクリックすると、ルール名を変更できます。開いたダイアログでルールの新しい名前を入力し、**OK** をクリックします。

**開始日 … 終了日**:

* **Add** — 入力した日付範囲をリストに追加します。
* **Remove** — 選択した範囲をリストから削除します。

**エラーメッセージ** — **自動生成**: このオプションを選択すると、エラーメッセージのテキストが自動的に生成されます。独自のテキストを入力する場合は、このオプションをオフにします。
