{"id":56638,"date":"2023-02-09T12:14:09","date_gmt":"2023-02-09T06:44:09","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=56638"},"modified":"2025-12-04T11:21:53","modified_gmt":"2025-12-04T05:51:53","slug":"creating-a-simple-dynamic-form-using-data-from-strapi-cms","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/","title":{"rendered":"Creating a Simple Dynamic form Using Data from Strapi CMS"},"content":{"rendered":"<p>In my previous blog, I showed how we could create a collection in <a href=\"https:\/\/strapi.io\/\">Strapi<\/a> that could further be used as input data to a dynamic form component to render a form as per users requirements.<\/p>\n<p><b>Create a React Project\u00a0<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Create a project using create react app.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Refer <\/span><a href=\"https:\/\/reactjs.org\/docs\/create-a-new-react-app.html\"><span style=\"font-weight: 400;\">https:\/\/reactjs.org\/docs\/create-a-new-react-app.html<\/span><\/a><span style=\"font-weight: 400;\"> in case of any issues.<\/span><\/li>\n<li>Install axios using <strong>npm i axios<\/strong><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ol>\n<p><b>Structure of the React App<\/b><\/p>\n<ol>\n<li>We will create a button upon which click we will fetch data from the <a href=\"https:\/\/strapi.io\/\">Strapi<\/a> server using axios.<\/li>\n<li>Upon successfully fetching the data, we will send that data to our Form component, which will create later.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-56631 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-23-16.png\" alt=\"Blog image\" width=\"667\" height=\"602\" srcset=\"https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-23-16.png 667w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-23-16-300x271.png 300w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-23-16-624x563.png 624w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/li>\n<li>Next, we will create our individual Input type components. Here will be creating just three i.e. Button, Dropdown, and Input Field.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-56632 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-25-35.png\" alt=\"Blog image\" width=\"483\" height=\"250\" srcset=\"https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-25-35.png 483w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-25-35-300x155.png 300w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-56633 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-26-29.png\" alt=\"Blog image\" width=\"702\" height=\"623\" srcset=\"https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-26-29.png 702w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-26-29-300x266.png 300w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-26-29-624x554.png 624w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-56634 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-27-29.png\" alt=\"Blog image\" width=\"1022\" height=\"406\" srcset=\"https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-27-29.png 1022w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-27-29-300x119.png 300w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-27-29-768x305.png 768w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-27-29-624x248.png 624w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/li>\n<li>Next, we will be creating our Form Component, which makes use of the above-created components to render the final form to the user:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-56635 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-29-20-1024x884.png\" alt=\"Blog image\" width=\"625\" height=\"540\" srcset=\"https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-29-20-1024x884.png 1024w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-29-20-300x259.png 300w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-29-20-768x663.png 768w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-29-20-624x539.png 624w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-29-20.png 1049w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/>\n<p>Here is the util file :<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-56636 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-30-49-1024x884.png\" alt=\"Blog image\" width=\"625\" height=\"540\" srcset=\"https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-30-49-1024x884.png 1024w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-30-49-300x259.png 300w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-30-49-768x663.png 768w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-30-49-624x539.png 624w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-30-49.png 1049w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/li>\n<li>This is what our Form looks like:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-56637 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/02\/form-page-1024x512.png\" alt=\"Blog image\" width=\"625\" height=\"313\" srcset=\"https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/form-page-1024x512.png 1024w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/form-page-300x150.png 300w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/form-page-768x384.png 768w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/form-page-624x312.png 624w, https:\/\/tothenewco.pro\/blog\/wp-content\/uploads\/2023\/02\/form-page.png 1521w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/li>\n<\/ol>\n<p><strong>Link to the github repo: https:\/\/github.com\/codeM1997\/react-strapi-form<\/strong><\/p>\n<p><b>Some things to try on your own:\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400;\">1) <\/span><b>Validations<\/b><span style=\"font-weight: 400;\">: Try creating a collection type for validations and use it along your forms by editing the form details structure in content type and builders. You can create validation cases for minimum length, maximum length, required etc.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2) <\/span><b>Using GraphQl for fetching data from Strap<\/b><span style=\"font-weight: 400;\">i: <\/span> <span style=\"font-weight: 400;\">You can use the graphql plugin in <a href=\"https:\/\/strapi.io\/\">Strapi<\/a> and request data as per your need. At the react end, You can use Apollo to fetch data using graphql queries.<br \/>\nYou can refer to this article for the same: <\/span><a href=\"https:\/\/docs.strapi.io\/developer-docs\/latest\/developer-resources\/content-api\/integrations\/graphql.html#examples-2\"><span style=\"font-weight: 400;\">https:\/\/docs.strapi.io\/developer-docs\/latest\/developer-resources\/content-api\/integrations\/graphql.html#examples-2<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project\u00a0 Create a project using create react app. Refer https:\/\/reactjs.org\/docs\/create-a-new-react-app.html in case of any issues. Install axios [&hellip;]<\/p>\n","protected":false},"author":1540,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":394,"footnotes":""},"categories":[3038,1994],"tags":[5102],"class_list":["post-56638","post","type-post","status-publish","format-standard","hentry","category-react-js","category-software-development","tag-react-forms-strapi-javascript"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project Create a project using create react app. Refer https:\/\/reactjs.org\/docs\/create-a-new-react-app.html in case of any issues. Install axios\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Anshul Mittal\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project Create a project using create react app. Refer https:\/\/reactjs.org\/docs\/create-a-new-react-app.html in case of any issues. Install axios\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project Create a project using create react app. Refer https:\/\/reactjs.org\/docs\/create-a-new-react-app.html in case of any issues. Install axios\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#article\",\"name\":\"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog\",\"headline\":\"Creating a Simple Dynamic form Using Data from Strapi CMS\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anshul-mittal\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2023\\\/02\\\/Screenshot-from-2023-02-07-17-23-16.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#articleImage\"},\"datePublished\":\"2023-02-09T12:14:09+05:30\",\"dateModified\":\"2025-12-04T11:21:53+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#webpage\"},\"articleSection\":\"React.js, Software development, react forms strapi javascript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/software-development\\\/#listItem\",\"name\":\"Software development\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/software-development\\\/#listItem\",\"position\":2,\"name\":\"Software development\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/software-development\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#listItem\",\"name\":\"Creating a Simple Dynamic form Using Data from Strapi CMS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#listItem\",\"position\":3,\"name\":\"Creating a Simple Dynamic form Using Data from Strapi CMS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/software-development\\\/#listItem\",\"name\":\"Software development\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anshul-mittal\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anshul-mittal\\\/\",\"name\":\"Anshul Mittal\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/721a1d39-d21e-4d9d-8fbf-7e7321f60bea_4975-Anshul-Mittal-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Anshul Mittal\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/\",\"name\":\"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog\",\"description\":\"In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project Create a project using create react app. Refer https:\\\/\\\/reactjs.org\\\/docs\\\/create-a-new-react-app.html in case of any issues. Install axios\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anshul-mittal\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anshul-mittal\\\/#author\"},\"datePublished\":\"2023-02-09T12:14:09+05:30\",\"dateModified\":\"2025-12-04T11:21:53+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog","description":"In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project Create a project using create react app. Refer https:\/\/reactjs.org\/docs\/create-a-new-react-app.html in case of any issues. Install axios","canonical_url":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#article","name":"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog","headline":"Creating a Simple Dynamic form Using Data from Strapi CMS","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/anshul-mittal\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2023\/02\/Screenshot-from-2023-02-07-17-23-16.png","@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#articleImage"},"datePublished":"2023-02-09T12:14:09+05:30","dateModified":"2025-12-04T11:21:53+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#webpage"},"articleSection":"React.js, Software development, react forms strapi javascript"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/software-development\/#listItem","name":"Software development"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/software-development\/#listItem","position":2,"name":"Software development","item":"https:\/\/tothenewco.pro\/blog\/category\/software-development\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#listItem","name":"Creating a Simple Dynamic form Using Data from Strapi CMS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#listItem","position":3,"name":"Creating a Simple Dynamic form Using Data from Strapi CMS","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/software-development\/#listItem","name":"Software development"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/anshul-mittal\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/anshul-mittal\/","name":"Anshul Mittal","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/721a1d39-d21e-4d9d-8fbf-7e7321f60bea_4975-Anshul-Mittal-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Anshul Mittal"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/","name":"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog","description":"In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project Create a project using create react app. Refer https:\/\/reactjs.org\/docs\/create-a-new-react-app.html in case of any issues. Install axios","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/anshul-mittal\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/anshul-mittal\/#author"},"datePublished":"2023-02-09T12:14:09+05:30","dateModified":"2025-12-04T11:21:53+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog","og:description":"In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project Create a project using create react app. Refer https:\/\/reactjs.org\/docs\/create-a-new-react-app.html in case of any issues. Install axios","og:url":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Creating a Simple Dynamic form Using Data from Strapi CMS | TO THE NEW Blog","twitter:description":"In my previous blog, I showed how we could create a collection in Strapi that could further be used as input data to a dynamic form component to render a form as per users requirements. Create a React Project Create a project using create react app. Refer https:\/\/reactjs.org\/docs\/create-a-new-react-app.html in case of any issues. Install axios","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"56638","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65e04fd0dbf2f","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-02-12 15:44:09","updated":"2025-12-04 05:51:54","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\/category\/software-development\/\" title=\"Software development\">Software development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreating a Simple Dynamic form Using Data from Strapi CMS\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Software development","link":"https:\/\/tothenewco.pro\/blog\/category\/software-development\/"},{"label":"Creating a Simple Dynamic form Using Data from Strapi CMS","link":"https:\/\/tothenewco.pro\/blog\/creating-a-simple-dynamic-form-using-data-from-strapi-cms\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/56638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/1540"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=56638"}],"version-history":[{"count":5,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/56638\/revisions"}],"predecessor-version":[{"id":76979,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/56638\/revisions\/76979"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=56638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=56638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=56638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}