From d8b113fe11ddf5f9b3f5dc527a070bc9f85eae20 Mon Sep 17 00:00:00 2001 From: Andreas Billmann Date: Fri, 18 Dec 2015 16:15:15 +0100 Subject: [PATCH] Updated Validation Configuration (markdown) --- Validation-Configuration.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Validation-Configuration.md b/Validation-Configuration.md index adb8a6b..1fc22cf 100644 --- a/Validation-Configuration.md +++ b/Validation-Configuration.md @@ -104,3 +104,7 @@ _(Empty cells are not checked, see not empty validation)_ ### groovy + "groovy" : "value.contains('9') ? true : 'SOME ERROR TEXT'" + +If the regexp is not enough, the groovy validation should fit. The groovy expressions can use the variable value which is the String in the cell. It should return a boolean true or the String "true" to be valid, in all other cases the toString representation of the result will be the error message. That also means, that there is no i18n support for the message! +_(Empty cells are not checked, see not empty validation)_ \ No newline at end of file