Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can also use the following functions with fields

FunctionWhat it doesExample
_lengthReturns the length of the field. For empty or non-existent fields the length is 0

summary._length:>20

Checks if summary field's length is longer than 20 symbols

summary._length:>20


_matches(Regular expression)You can validate the field value agains the given regular expression. Returns true or false

Checks if value is not empty

myfield._matches(^(?=\s*\S).*$)

Code Block
myfield._matches(^(?=\s*\S).*$):true


Value ends with pdf

myfield._matches(.*?\.pdf)

Code Block
myfield._matches(.*?\.pdf):true


Value DOES NOT end with pdf

myfield._matches(.*?\.pdf)

Code Block
myfield._matches(.*?\.pdf):false