I want to create a new field (checkbox) for all my pages and to be able to disable something. but the field content shouldn't be "disable", thats why i need a default value. Is this possible?
I tried with
[Field(Title = "Feature Enabled", Options = Piranha.Models.FieldOption.HalfWidth)]
public Piranha.Extend.Fields.CheckBoxField Enabled { get; set; } = true;
Any suggestion or do i need to introduce the negative field like "disable"?
Since the Create() method
we would need to introduce a DefaultValue properties on the FieldAttribute
I also have the same requirement so this would be useful.
Closing this in favor of #1233 which would enable this functionality.
Most helpful comment
Since the
Create()methodwe would need to introduce a
DefaultValueproperties on theFieldAttribute