Embed your form in React, Next.js, or Vue
You can embed your Formware form in React, Next.js, or Vue using a simple iframe. This allows you to display your form directly inside your application.
Get your form URL
Section titled “Get your form URL”- Open your form in Formware.
- Go to the
Sharetab. - Copy your form URL.
Add the iframe to your app
Section titled “Add the iframe to your app”Insert the iframe inside your component or page:
<iframe src="YOUR_FORM_URL" loading="lazy" width="100%" height="700" frameborder="0" marginheight="0" marginwidth="0"></iframe>Replace YOUR_FORM_URL with your actual form link.
Example in React / Next.js
Section titled “Example in React / Next.js”In React or Next.js, you can include the iframe directly in your JSX:
export default function FormEmbed() { return ( <iframe src="YOUR_FORM_URL" loading="lazy" width="100%" height="700" frameBorder="0" marginHeight="0" marginWidth="0" /> );}Example in Vue
Section titled “Example in Vue”In Vue, add the iframe inside your template:
<template> <iframe src="YOUR_FORM_URL" loading="lazy" width="100%" height="700" frameborder="0" marginheight="0" marginwidth="0" > </iframe></template>Customize the embed
Section titled “Customize the embed”You can adjust the iframe attributes to better fit your layout:
- width=“100%” → makes the form responsive
- height=“700” → increase or decrease based on your form length
- loading=“lazy” → improves performance by loading only when visible
Test your embedded form
Section titled “Test your embedded form”- Start your development server.
- Open your app in the browser.
- Verify that the form loads correctly.
- Submit a test response.
All responses will appear in the Results tab in your Formware dashboard.