// Reviewer DL
def cfName = getFieldByName("Reviewer DL")
cfName.clearError()
String cfNameValue = cfName.getValue()
if (cfNameValue.endsWith("-rev")) return
if ((cfNameValue.endsWith(".rev@email.com")))return
if (cfNameValue.length() > 1)
cfName.setError("should end with .rev@email.com or -rev without @email.com")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter