Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Greg Woods 12 posts 92 karma points
    Apr 12, 2018 @ 07:51
    Greg Woods
    0

    Custom Field Type Hide/Show based on user permissions

    Hi All

    Anyone know if it's possible to hide/show a Field Type based on user permissions.

    https://our.umbraco.org/documentation/Add-ons/umbracoforms/developer/extending/adding-a-fieldtype

    e.g.

     public MyCustomField()
        {
            this.Id = new Guid("08b8057f-06c9-4ca5-8a42-fd1fc2a46eff"); // Replace this!
            this.Name = "My Custom Field";
            this.Description = "Render a custom text field.";
            this.Icon = "icon-autofill";
            this.DataType = FieldDataType.String;
            this.SortOrder = 10;
            this.SupportsRegex = true;
            //Something like this????
            this.Permissions = "Administrator";
        }
    
Please Sign in or register to post replies

Write your reply to:

Draft