Excluding a built-in field
Example
using Umbraco.Cms.Core.Composing;
using Umbraco.Forms.Core.Providers.Extensions;
using Umbraco.Forms.Core.Providers.FieldTypes;
namespace MyNamespace
{
public class MyFormFieldsComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.FormsFields()
.Exclude<Password>()
.Exclude<Recaptcha2>()
.Exclude<RichText>();
}
}
}Last updated
Was this helpful?