Skip to main content
2 of 2
deleted 4 characters in body
Sharky
  • 12k
  • 8
  • 23

The error occurs because you do not have any code for saving and retrieving your field data. $this->extrafields is undefined.

How to solve this depends on how and where you want to store your data. If you have no preference and just want the fields to have their own tab in the form, keep using params field group but use a custom fieldset:

<fields name="params">
    <fieldset name="extrafields">
        <field 
            name="theme"

This way your fields are stored along with params and are accessible the same way:

$this->params->get('theme');
Sharky
  • 12k
  • 8
  • 23