I created a multifield as showed below, but i would like to have validation for my socialMediaLink (that is defined as a string). So when the user press save on entered data it would regex validate the string as an url.
new FieldDefinition(“SocialMedia”, SystemFieldTypeConstants.MultiField)
{
Localizations =
{
[“sv-SE”] = {Name = “Social Media” },
},
CanBeGridColumn = false,
CanBeGridFilter = true,
Option = new MultiFieldOption
{
IsArray = true,
Fields = new List()
{
“SocialMediaIcon”,
“SocialMediaIconText”,
"SocialMediaIconLink"
}
}
}
Litium version: 7.2