# Variables and blanks in contracts

> Fill client names, dates and fees into photography contracts automatically, and leave blanks your client completes while signing. Every variable listed.

Source: https://help.corehue.co/docs/contracts/smart-fields-and-blanks/

Variables drop details CoreHue already knows, like your client's name or the booking date, into the contract text. Blanks ask your client for something while they sign, like an emergency contact. Put both in your templates and you'll rarely type a client's details again.

For how this works across emails and other documents, see [Filling in client details automatically](/docs/getting-started/smart-fields).

## Adding a variable

1. Put your cursor where the detail should go.
2. Choose **Insert Variable** in the toolbar.
3. Pick the variable from the list.

It shows as a tag in the editor, and your client sees the real value in its place.

To use a different value on this one contract, click the tag, type the value and choose **Apply**. The reset button next to it brings the automatic value back.

## Every variable, and where it comes from

| Group | Variables | Filled from |
| --- | --- | --- |
| Client | Client Name, Client Email, Client Phone, Client Address | The contract's **Contact** |
| Business | Business Name, Business Email, Business Phone, Business Address, Registration Number | [Business details and logo](/docs/account/business-details-and-logo) |
| Contract | Contract Number, Contract Date, Expiry Date | The contract itself |
| Booking | Booking Date, Booking End Date, Service Name, Venue, Booking Duration, Start Time, End Time, Package, Add-ons | The booking picked under **Booking**, or the booking the contract came with |
| Invoice | Invoice Number, Invoice Total, Currency, Deposit, Balance | The invoice picked under **Invoice** |
| Dates | Today's Date, Current Year | The day the contract is prepared |

## When a variable has nothing to fill it

CoreHue won't send a contract with a gap in it. Instead, **Cannot send contract** lists each empty variable and why. The usual fixes:

- **A booking variable with no booking picked.** Pick one under **Booking**, or remove the variable.
- **An invoice variable with no invoice picked.** Pick one under **Invoice**, or remove the variable.
- **A business detail you haven't added.** Fill it in under **Settings → Business**. **Registration Number** is the one people most often leave empty.

You can also type a value for that contract by clicking the variable, as above.

Picking a booking under **Booking** only fills in its details. It doesn't add the contract to the booking, so keep the contract with the job by putting it in the booking's project. See [Creating a contract](/docs/contracts/creating-a-contract).

**In a proposal**, invoice variables can wait, because the invoice is created when your client accepts. That only works if the proposal collects payment. **Expiry Date** shows the proposal's expiry date, which is also your client's deadline to sign, or "No expiry" if the proposal doesn't have one. See [Adding a contract and payment schedule to a proposal](/docs/proposals/bundling-a-contract-and-payments).

**On a booking service**, the contract is signed the moment someone books, so a few variables can't be used: **Expiry Date**, **Booking End Date**, **Package** and **Invoice Number**. **Client Phone** works only if the booking form asks for a phone number and makes it required. The service lists anything outstanding under **Finish these first**. See [Adding a contract and questionnaire to booking](/docs/online-booking/contracts-and-questionnaires-in-booking).

## Adding a blank for your client

1. Put your cursor where the answer should appear.
2. Choose **Client Field** in the toolbar.
3. Write a **Label** and pick a **Type**: **Text** or **Date**.
4. Turn off **Required** if the blank is optional.
5. Choose **Add**.

Each blank also appears in the **Client fields** list under the contract, so you can see everything you're asking for. A contract can hold up to 50.

Write labels that make sense on a phone with no other context. "Name and number of your day-of coordinator" gets a better answer than "Coordinator".

## What your client sees

Your client sees the contract with every variable already filled in. Below it, under **Fill in the blanks**, they answer your questions, and their answers appear in the agreement as they type. Once they sign, the answers are locked in and show in the signed PDF.

## Frequently asked questions

### Can my client change a variable, like the date?

No. Your client can't edit variables. If something's wrong, fix the contact, booking or business details, or type the right value on the contract, before it's signed.

### Is there a signature or initials blank?

No. Blanks are **Text** or **Date** only. The signature itself is collected in the **Sign** section at the end of every contract.

### What happens to booking variables if I delete the booking?

The **Booking** field on any contract that used it is cleared. On a contract you haven't sent yet, pick another booking or type the values in before you send.

### Why can't I send a contract that uses Booking End Date?

**Booking End Date** only fills in for a booking that runs over more than one day. For a single-day booking, use **Booking Date** instead.
