07 Mar 2016

Magento Admin Module – set default value in admin form

Beginners guide to Admin Forms. If you

07 Mar 2016

Beginners guide to Admin Forms.

If you are a beginner in Magento, and just start exploring how you can create your own extension, you may encounter following problem – how to set default value for the field in a form.

Mainly, this topic covers issues related with “select” and “checkbox” field types.

So, just use the following snippet:

You can also use this sql upgrade snippet to upgrade your existing database:

Hope that helped you on first steps learning Magento!

Leave a comment
More Posts
Comments
Comment