Skip to content

Set comment email as Email Address datatype #5

@bjarnef

Description

@bjarnef

I think it would be great to add an "Email Address" datatype instance:

image

and set this as datatype instead:
https://github.com/umbraco/Umbraco.UIBuilder.Demo/blob/main/src/Umbraco.UIBuilder.Demo/UmbracoBuilderExtensions.cs#L47

.AddField(c => c.Email).SetDataType("Email Address").SetValidationRegex("[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+")

or the guid overload method in umbraco/Umbraco.UIBuilder.Issues#67

Eventually it could add constants like this in core:
https://github.com/umbraco/Umbraco-CMS/blob/8e609af90168a7c5e088b30193266733269457ec/src/Umbraco.Core/Constants-DataTypes.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions