Copied to clipboard

Flag this post as spam?

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


  • Ivan 165 posts 543 karma points
    Dec 12, 2016 @ 09:40
    Ivan
    0

    How to customize regex validation messages in backoffice?

    Hello,

    Is it possible to replace the "Value is invalid, it does not match the correct pattern" with customized message?

    enter image description here

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Dec 13, 2016 @ 08:37
    Dennis Adolfi
    100

    Hi Ivan.

    I dont think that this is possible unfortunatly without creating some sort of custom datatype.

    What I usually do is to create a property description and in that description tell the user how he/she should format the URL. Maybe that could work for you?

    enter image description here enter image description here

    Or maybe submit a feature request for custom regex validation messages? http://issues.umbraco.org/dashboard

    All the best / Dennis

  • Ivan 165 posts 543 karma points
    Dec 13, 2016 @ 10:04
    Ivan
    0

    Thanks, Dennis!

    I've posted feature request.

    Do you know if it's possible to translate the error message?

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Dec 13, 2016 @ 15:22
    Dennis Adolfi
    1

    Hi again Ivan.

    That´ss great that you submitted it as a feature, helping to make Umbraco even better! #h5yr

    Unfortunatly, looking at the source code, it looks like it could be hard to change this message without updating the core.

    Screenshop from core: enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft