Link Description Length Validator
Published at September 30, 2016 · 4 min read
Today’s adventure is about custom validators. A feature I’m working on has a requirement that a link’s description must be no longer than 60 characters. I decided to look at the field validators that Sitecore comes with. The closest one I could find was the “Max Length 40” validator located at: /sitecore/system/Settings/Validation Rules/Field Rules/Sample/Max Length 40 I setup a template and slapped that validator onto the general link field and, as I expected, it didn’t work right:...