> For the complete documentation index, see [llms.txt](https://adminguidesgitbook.aerofiler.com.au/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adminguidesgitbook.aerofiler.com.au/repository/fields/default-values.md).

# 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="/files/yZTr9reEs1lmdiBMCiGZ" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/MMXXTezoGvawnM6xyw1g" alt=""><figcaption></figcaption></figure>

Click "Create Rule and define a rule as follows:

<figure><img src="/files/BLRYz4jwnbyQvzAfMsyN" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/jG9lxq4cZrx6ZmHkmoNZ" 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 %}
