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

# Smart Objects

> How to create a Smart form Object

Smart Objects are items on the canvas whose value is dynamically linked to a Form or a Datasource.

> [!TIP]
>
> Forms are automatically displayed in the Editor to your customers if you have one or more Smart Texts enabled.
>
> ![](https://mintcdn.com/printapp/IX5EDu7QSq3aP3fy/images/object-form.png?fit=max\&auto=format\&n=IX5EDu7QSq3aP3fy\&q=85\&s=df8ada347cdbf2e991a76f3d234255e9)

[Smart Objects Tutorial](https://www.youtube.com/embed/xiIUoZn4Uuc)

### How to create a Smart Text

* Create a Text Object and edit the text value to what you want. eg `hello@company.com`
* Select the Text and go to the Object tabs. Enable the Smart Text switch.

  ![](https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/smart-text-switch.png?fit=max\&auto=format\&n=N56SlrciPbc3x4L4\&q=85\&s=3f49b88c639878dce310fe57a0e51787)

  Your Text has become a Smart Object and will appear in a Form on the left panel when your customers are editing the Design.
* To provide additional details, you can give the Text a title `Email`. You do this on the Object panel as well.

### Create a Smart Text using multiple variables

The simple Smart text you created earlier allowed you to create only one editable variable, which is an email.

Using curly braces `{variable}`, you can combine one or more variables into a single multi line Text field.
Think of an Address or user details. It has the a name, email, phone number with extension and address. These can be combined in a single text field but editable individually in the form.

```Text theme={null}
{Name:Jane Doe}
{Email}
{!*Phone:: 081444 2822}  {*Ext:: 02}
{Address:Address line
Address Line 2,
City, Zip Code}
```

Consider the above as the full text you typed into a multi line textbox.
\
This is how it will appear in the form:

![](https://mintcdn.com/printapp/N56SlrciPbc3x4L4/images/smart-text-multi.png?fit=max\&auto=format\&n=N56SlrciPbc3x4L4\&q=85\&s=9dd8ce108373abe4ff7cf8b14ff6922c)

Let us dissect the values by following each sets of curly braces *(opening and closing)*.

* `{Name:Jane Doe}`: The first item before a colon `:` is treated as the title while the text that follows is treated as the default value. Here, the title is Name, and the default value is Jane Doe.

* `{Email}`: This is treated as the Title with no default text value.

* `{!*Phone:: 081444 2822}  {*Ext:: 02}`:
  * The `!` means that line is required and must be supplied by the customer.
  * The `*` before a Title implies that though the `Phone` and `Ext` are titles, they should be included in the final text content, so they have dual use. A title, and as part of the final text on canvas.
  * The double colon `::` implies that the first colon is a separator while the second one should be included in the final text value. So you have `Phone: 081444 2822 Ext: 02` as the final text; replacing the numbers with whatever your customer provides.

* The Address line spans 3 rows and should be treated as a single Title, Value pair. With this, a multi line textbox is provided for the user to type into. If they omit line 2 of the address, the text shifts up.

### Smart Text Summary

| | | |
| - | - | - |
| `{title}` | - | Opening and closing braces is used to create a smart text title |
| `{title:Default}` | - | A default text value can be provided with a separation colon after the title |
| `!` | - | Exclamation means this line is required |
| `*` | - | Asterisk means the title following should be included in the final text as well |
| `::` | - | Double colon means a colon should be added to the final text |

> [!TIP]
>
> Only the **first** colon separates the title from the default — a default may itself contain colons: `{Time:: 9:00}` shows a field titled Time with the default `9:00`, printed as `Time: 9:00`.

### Typed fields

For real form controls — email or phone inputs, dropdowns, length limits — add a pipe `|` after the title, followed by comma-separated attributes:

```Text theme={null}
{!Email | type: email}
{Phone | type: tel, showtitle, colon}
{Size | type: select, options: S; M; L; XL, default: M}
{Qty | type: number, default: 1}
{Notes | multiline, lines: 4, max: 200}
```

A token whose `|` section names one of the attributes below is a typed field — a `|` used as plain text (with no attribute after it) keeps its normal meaning. The form renders a matching input: `select` becomes a dropdown of the `options` (separated by `;`), `email` / `tel` / `number` set the input type (with the right on-screen keyboard on mobile), `max` caps the text length, and `multiline` / `lines` render a sized textarea.

| Attribute | |
| - | - |
| `type: text\|email\|tel\|url\|number\|select` | The form input type. `select` renders a dropdown of `options`. |
| `options: A; B; C` | Dropdown choices, separated by `;` (used with `type: select`). |
| `default: value` | Initial value, like the legacy `{Title:Default}`. |
| `required` | The customer must fill this field (same as the `!` prefix). |
| `showtitle` | Print the title with the value (same as the `*` prefix). |
| `colon` | Render a colon after the printed title (same as `::`). |
| `multiline` | Multi-line input. |
| `lines: n` | Number of textarea rows (implies `multiline`). |
| `max: n` | Maximum text length. |

The legacy `!` and `*` prefixes remain valid on a typed title — `{!Email | type: email}` is both required and an email input. Legacy and typed tokens can be mixed freely in one text object.

> [!TIP]
>
> In the new (printfx) editor, form values are additionally keyed by the field **title** rather than the raw token — so editing a default or an attribute later no longer disconnects values customers already saved.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.