Custom admin form show in localhost not display in server in magento 2

I have follow this reference to create a custom form in admin https://www.maximehuran.fr/en/layouts-and-forms-on-magento-2-admin/

In LocalHost:

enter image description here

In Server:

enter image description here

  • Is there any log in the console?
    – kunj
    Commented Feb 20, 2020 at 11:16
  • there is no error in log file Commented Feb 20, 2020 at 11:25
  • In local & server both have same deployment mode ? if yes then maybe you need to set production mode in local system and then check ur functionality.
    – Rik Patel
    Commented Feb 20, 2020 at 11:51
  • I mean for browser console log.
    – kunj
    Commented Feb 20, 2020 at 14:10
  • There is no console error prnt.sc/r5hlj4 Commented Feb 21, 2020 at 5:05

1 Answer 1


Try to use Ui component form instead of blocks if you want to write less code and let magento make all work for you. If you want to control whole process u can try blocks as well.

You can follow this tutorial

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.