Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
xVal.AttachValidator(null,
{
"Fields": [
{
"FieldName": "CompanyCode",
"FieldRules": [
{
"RuleName": "Required",
"RuleParameters": {
},
"Message": "Selskapskode er påkrevd"
}
]
},
{
"FieldName": "Name",
"FieldRules": [
{
"RuleName": "Required",
"RuleParameters": {
},
"Message": "Navn er påkrevd"
}
]
},
{
"FieldName": "Email",
"FieldRules": [
{
"RuleName": "DataType",
"RuleParameters": {
"Type": "EmailAddress"
},
"Message": "E-post er ugyldig"
}
]
},
{
"FieldName": "ZipCode",
"FieldRules": [
{
"RuleName": "RegEx",
"RuleParameters": {
"Pattern": "^[0-9]+$"
},
"Message": "Post nummer kan kun inneholde tall"
},
{
"RuleName": "StringLength",
"RuleParameters": {
"MinLength": "4",
"MaxLength": "4"
},
"Message": "Post nummer kan kun inneholde 4 tegn"
}
]
},
{
"FieldName": "ResponsibleEmail",
"FieldRules": [
{
"RuleName": "Required",
"RuleParameters": {
},
"Message": "E-post for ROFF ansvarlig er påkrevd"
},
{
"RuleName": "DataType",
"RuleParameters": {
"Type": "EmailAddress"
},
"Message": "E-post er ugyldig"
}
]
},
{
"FieldName": "WebServiceEmail",
"FieldRules": [
{
"RuleName": "Required",
"RuleParameters": {
},
"Message": "E-post for webtjenester er påkrevd"
},
{
"RuleName": "DataType",
"RuleParameters": {
"Type": "EmailAddress"
},
"Message": "E-post er ugyldig"
}
]
}
]
}, {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.