Custom field validators editor make field as required
Custom field validators editor make field as required
here my code, if IsAlphabets true so return null else return message
.Field(new Field("Tours_Operation.Tour_Code_1").Xss(false)
.Validator(Validation.MaxLen(3, new ValidationOpts
{
Message = "מקסימום 3 תווים"
}))
.Validator((val, d, host) => Functions.IsAlphabets(Convert.ToString(val))
? null
: "שדה מוגבל ל3 תווים באנגלית בלבד"
)
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I'm sorry, but I'm not clear what the question is. Please could you add more detail,
Colin
i figured out what was the problem, thanks