Custom Field Settings: Unknown Property Error I have a custom field with a setting for regionType, but when I try to save the field I get this error:


  Setting unknown property:
  kgrote\siteutilities\fields\Regionselect::regionType


In my fieldtype file I have this to load the settings field:

public function getSettingsHtml()
{
    // Render the settings template
    return Craft::$app-&gt;getView()-&gt;renderTemplate(
        'site-utilities/_components/fields/Regionselect_settings',
        [
            'field' =&gt; $this,
            'settings' =&gt; $this-&gt;getSettings()
        ]
    );
}


And the settings template looks like this:

{% import "_includes/forms" as forms %}

{% set input %}
    {{ forms.select({
        id: 'regionType',
        name: 'regionType',
        options: ({
            'usStates' : 'US States &amp; Canadian Provinces',
            'countries' : 'Countries'
        })
    }) }}
{% endset %}

{{ forms.field(
    {
        label: "Region Type"|t('app')
    }, 
    input 
) }}


My field is a simple pre-filled dropdown, so I'm importing most of the methods for my field from craft/vendor/craftcms/cms/src/fields/BaseOptionsField.php. 

I don't see much in the source code that relates to settings, so I'm not really sure what's causing this error.
The name of your select is regionType thus it will try to store the property regionType in your field. When you call the field value it will set the property value in you class.

You either need to include the property or change it to an existing one.