Integrate Surface Forms with Next.js to embed forms in your Next.js application.
surfaceForm-script.tsx
and add the following code:window?.showSurfaceForm()
which can be used to open the form programmatically.
SurfaceFormScript()
component to the
app/layout.tsx
file:ShowSurfaceForm
component to the
pages/_app.tsx
file:<ShowSurfaceForm />
component and add the following code: