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

# Squarespace

> Use Formbase with Squarespace forms.

Squarespace does not allow direct control of the built-in form action, so the most reliable integration is to use a Code Block with your own HTML form.

This gives you full control over field names and submission behavior.

<Steps>
  <Step title="Create a Formbase endpoint">
    Create a new form in the Formbase dashboard and copy the endpoint URL.
  </Step>

  <Step title="Add a Code Block">
    In Squarespace, add a Code Block to your page and paste an HTML form.
  </Step>

  <Step title="Set the action URL">
    ```html theme={null}
    <form action="https://formbase.dev/s/YOUR_FORM_ID" method="POST">
      <input name="name" placeholder="Name" required />
      <input name="email" type="email" placeholder="Email" required />
      <button type="submit">Send</button>
    </form>
    ```

    Publish the page and submit a test entry.
  </Step>
</Steps>

<Callout type="note">
  If you need a custom success experience, handle submission with JavaScript and redirect manually.
</Callout>
