Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Keith Boynton 19 posts 61 karma points
    May 24, 2020 @ 08:55
    Keith Boynton
    0

    Can't seem to get DocType property custom validation working

    I have a Title property on a specific document type which uses an Umbraco.TextBox property editor.

    I am trying to restrict input on that property to a minimum of 6 words by using the Custom validation section of the settings for that property as can be seen below: PropertySettings

    No matter what I seem to put into the regex section it always validates as ok and I never see the validation error message.

    I've tried all kinds of different regexes and even a simple ^..$ but nothing seems to make any difference.

    enter image description here

    Presumably I'm missing something pretty simple, can anyone help?

  • Keith Boynton 19 posts 61 karma points
    May 24, 2020 @ 20:04
    Keith Boynton
    0

    I was missing something, this wasn't working on save but when I click Save and Publish then I started to see the validation error message and now it works when just trying to save.

    Maybe there was some kind of caching going on.

Please Sign in or register to post replies

Write your reply to:

Draft