Hi! I get an error when using a taglist field with dynamic options:
Is something wrong in my code?
tags:
label: 'Tags'
type: taglist
options: \My\Plugin\Models\Settings::customTagsOptions
mode: string
separator: space
customTags: true
public static function customTagsOptions($model, $formField)
{
$options = ['tag-1', 'tag-2','tag-3','tag4', 'tag5', 'tag6'];
return $options;
}