# Default Values

### Demonstration - Setting Document Type Based on Rules

{% embed url="<https://www.loom.com/share/9ac3822a4db84215a290670cb5570392>" %}

Default values allow you to automatically set values in Aerofiler. For example, suppose you wish to flag a document as a "Material Contract" if the contract value is above $100,000. To begin, start with two custom fields: "Material Contract" (Yes / No) and "Contract Value" (Number).

Then, click the "Settings" icon for "Material Contract":

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2FdDmjT238nFOAVxMCuqTg%2Fimage.png?alt=media&#x26;token=1d78158e-72f0-435a-bab6-44c6311136d2" alt=""><figcaption></figcaption></figure>

Then, click "Manage Rules" to define the contract value threshold:

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2FiQyteqA9WHwVoXV4OHoc%2Fimage.png?alt=media&#x26;token=ec0f35cd-18c3-4e03-b1dd-4e79ae9c2825" alt=""><figcaption></figcaption></figure>

Click "Create Rule and define a rule as follows:

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2FOPwfAx01fkJqV2URXeRo%2Fimage.png?alt=media&#x26;token=15b91ebf-29bb-4ea1-bcc3-2d5a52d005ca" alt=""><figcaption></figcaption></figure>

Then, set the default value to be true when the contract value is greater than $100,000:

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2Fq3OdYM2dRGjAD0ot0DsG%2Fimage.png?alt=media&#x26;token=385436aa-6681-420f-84ce-bb204d96f96f" alt=""><figcaption></figcaption></figure>

Now, when the contract value is set to greater than $100,000, the "Material Contract" fields will be set to "Yes":

{% embed url="<https://www.loom.com/share/fdb46be122134666ab3220512091276a>" %}

{% hint style="info" %}
If the "Material Contract" field is manually edited (which will be indicated by the field having a white background), then automatic updates will no longer occcur.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://adminguidesgitbook.aerofiler.com.au/repository/fields/default-values.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
