I have created a custom field in Umbraco Forms but it doesn’t seem to like the Umbraco UI checkbox:
[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](Setting Types | Forms | Umbraco Documentation "documentation
(Setting Types | Forms | Umbraco Documentation)") 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.
This is for Umbraco 17.