Opened 8 years ago

Last modified 5 years ago

#12510 new enhancement

Message at validate rule — at Initial Version

Reported by: anonymous Owned by: Rob Guttman
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

Hi,

It would be great if it is possible to add a message to the validation rule, because the least users know how a regex work. And the message "owner must not (?!(?:[a-z0-9!#..." is not perfect ;)

example checks if the owner is an emailaddress owner.invalid_if = (?!(?:[a-z0-9!#$%&'*+\/=?_{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|
[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|
[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])).*$

THANK YOU regards

Change History (0)

Note: See TracTickets for help on using tickets.