Skip to content

How to create a custom form in Magento2 & then display the form values in admin custom grid

Notifications You must be signed in to change notification settings

Binstellar-Technologies/magento2-create-custom-form-display-its-value-in-admin-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento2 - Create custom form & display its value in Admin Grid

Magento2 an open-source e-commerce platform written in PHP.

In this extension we have created a Custom Form in Magento2 frontend & displayed it's value in admin grid. In order to do the same please install the extension.

Creating a custom form is a very basic need in any of the frameworks. In order to fulfil the same need in Magento2 we are going to check an example as shown in Screenshot & in order to implement the same you can follow to steps as mentioned below.

The Grid output you can see under Admin > Binstellar > Freehomemeasure Form Details

Additional we have also added code for getting this values via GraphQL

   

Installation Steps

Step 1 : Download the Zip file from Github & Unzip it
Step 2 : Create a directory under app/code/Binstellar/Freehomemeasure
Step 3 : Upload the files & folders from extracted package to app/code/Binstellar/Freehomemeasure
Step 4 : Go to the Magento2 Root directory & run following commands

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy -f

php bin/magento cache:flush

Frontend Output

image1

Admin Menu

image2

Admin Grid

image4

More Details for each form

image3

   

Note : We have tested this option in Magento ver. 2.4.5-p1