https://discord.umbraco.com logo
I have created a custom field in Umbraco Forms but...
# umbraco-chat
w
I have created a custom field in Umbraco Forms but it doesn't seem like the Umbraco UI checkbox is available to use:
Copy code
csharp
[Setting(
        "Enabled days",
        Description = "Select which days of the week can be selected.",
        View = "Umb.PropertyEditorUi.CheckBoxList",
        PreValues = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
        DefaultValue = "Tuesday,Thursday",
        DisplayOrder = 60)]
    public string EnabledDays { get; set; } = string.Empty;
It just doesn't render anything. Views like
Umb.PropertyEditorUi.Dropdown
and
Umb.PropertyEditorUi.Toggle
work but not checkboxlist. The [documentation](https://docs.umbraco.com/umbraco-forms/developer/extending/adding-a-type/setting-types#built-in-setting-types) doesn't list checkbox as being supported but I would expect all Umbraco property editors to be available, unless Forms is specifically not registering/excluding them. Has anybody used a checkbox in a custom field? I feel like I shouldn't have to create a custom property editor just for this.