# Form inside Shopify Page

Embedding Forms in Shopify Pages

### Overview

You can embed forms on any [Shopify page](https://help.shopify.com/en/manual/online-store/themes/theme-structure/pages). By using a page, you can customize the URL, so it doesn't have to be `/apps/product-registration`. For more details on customizing the URL and other settings, refer to the [Shopify page documentation](https://help.shopify.com/en/manual/online-store/themes/theme-structure/pages).

To embed the form inside a page, simply add the form block to the page using the theme's customizer.

> **Note:** If the page template is shared between different pages, the form will be added to all pages using that template. To add the form to a new page, you will need to create a new template using the instructions below.

1. Go to **Shopify admin > Online Store > Themes > Customize**

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

2. On the customize page, add a section or block to the page where you want the form to appear.

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

#### How to create a new page template for the form

The above method will add the form block to the page template, but this might not be ideal if the template is shared between multiple pages, as the form will appear on all those pages.

To ensure the form appears only on a specific page, you should create a new page template specifically for the form. This way, the form will be isolated to that single page.

To create a new page template, follow these steps:

1. Go to **Shopify admin > Online Store > Themes > Customize**.
2. In the theme editor, click on the **Actions** dropdown and select **Edit code**.
3. Under the **Templates** section, click **Add a new template**.
4. Choose **page** as the template type and give it a unique name, such as `page.form`.
5. Select **Done** to create the template.

Now that you have created a new page template specifically for the form, you can add the form block to this template without affecting other pages.

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

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

#### How to add the new template to a page

Once you have created the new page template, you can add the form block to it. To do this, follow these steps:

1. Go to **Shopify admin > Online Store > Pages > Add page**.
2. Create a new page and select the new page template you just created from the **Template suffix** dropdown.

This way, only the new page will use the template, and the form will appear exclusively on that page instead of other pages.

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


---

# 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://doc.product-reg.varify.xyz/admin/form-inside-shopify-page.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.
