# Form - Creation mode

## Layout - Overview <a href="#id-604785" id="id-604785"></a>

### Page Title

<figure><img src="https://1297765105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMoZPkWOmnKvoMWGW4aeM%2Fuploads%2FFHkea71hLiZjQRdgRvEZ%2FPage-title-creation-form.svg?alt=media&#x26;token=ec9db8da-aa49-4db5-955c-7d8e4080b485" alt=""><figcaption><p>Exemple of a Page Title</p></figcaption></figure>

* **Visibility:** The page title is always visible on a creation form.
* **Content:**  "Add *\[object name]*" or "Create **\[object name]**"&#x20;
* **Navigation:** Include a backlink for easy return to the previous page, unless this is the first page in the hierarchy.
  * **Backlink Content:** "Back to *\[landing page title]*", where *\[landing page title]* is the exact title of the return page.
* **Additional Information:** [Learn more about Page Titles and Backlinks](https://design.mirakl.com/design/components/navigation/page-title).

### Save Bar

<figure><img src="https://1297765105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMoZPkWOmnKvoMWGW4aeM%2Fuploads%2FcYWfThpZnM7tT6lA0oaR%2FSavebar%20Hero.png?alt=media&#x26;token=b24d4e28-a529-4b23-9b43-b0eb69e72b68" alt=""><figcaption><p>Save Bar in a creation mode form</p></figcaption></figure>

* **Visibility:** The Save Bar is always visible in creation mode.
* **Functionality:** Both '*Save*' and '*Cancel*' buttons are enabled when the Save Bar is visible.

## Form submission

### Success

*When users have successfully saved the form*

* **Single Object Creation:**
  * **Process:** After creating a single object, users are redirected to the previous page, accompanied by a success notification.
  * **Notification Content:** "\[Object name] added" or "\[Object name] created".
* **Multiple Object Creation:**
  * **Process:** After saving the form, users have the option to create another object.
  * **Notification:** Display a success alert with options for additional actions.

<figure><img src="https://1297765105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMoZPkWOmnKvoMWGW4aeM%2Fuploads%2FAKx4nAotfATV2ipPQbDx%2FuxX40A_6ccyLslmCtUJJ0Q%20(1).png?alt=media&#x26;token=1c27ce89-13af-4c91-aa44-cbafea0b750b" alt="" width="375"><figcaption><p>Exemple of a success alert when creating multiple objects in a row</p></figcaption></figure>

### Cancel <a href="#id-54dd8b" id="id-54dd8b"></a>

*When users clicks Cancel or the backlink without saving form*

* **Form pristine (unmodified)** : no modal + back to previous page (in the hierarchy)
* **Form dirty:** *`Prompt-before-leave`* + back to previous page (in the hierarchy)

<figure><img src="https://1297765105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMoZPkWOmnKvoMWGW4aeM%2Fuploads%2FFcPPUam4CIqecCzP1Dh2%2FWqeOgaKMTQnF9cg62bPdzg.png?alt=media&#x26;token=b4e48204-64c1-4214-a7a4-fb3165b35548" alt="" width="375"><figcaption><p>exemple of a Prompt Before Leave</p></figcaption></figure>

### Prevent changes while submission

* **Processing Time:** The form becomes read-only during backend processing to prevent changes.

## Take aways

{% hint style="success" %} <mark style="color:green;">**Do**</mark>

* Respect Layout guidelines
* Refer to Stepper Form guidelines for long and/or complex forms
* Refer to [Error Management](https://design.mirakl.com/design/patterns/forms/error-management) page to guide users through the whole form experience
  {% endhint %}

{% hint style="danger" %} <mark style="color:red;">**Don't**</mark>

* Avoid custom behaviors: keep form creation consistent across all products.
  {% 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://design.mirakl.com/design/patterns/forms/form-creation-mode.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.
