Child pages
  • Automatic validation for your fields

Versions Compared

Key

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

...

Look for ConfiForms Form Field Definition macro parameter 

Warning

Please note that there is a bug in Confluence editor with rendering placeholders for macros that have {} in their parameters.

Something like

Image Removed

or

Image Removed

(depending on what is inside the {})

This could be safely ignored - this affects only rendering of a macro placeholder in the editor

Since version 1.4.17 you can use the reserved word [unique] in order to check for field's value uniqueness. See examples below.

ValidationRegular expression
Value is empty^\s*$

Value NOT matching something 

(Allow everything, but 'something'. Useful when you would like to apply validation on dropdown fields)

^(?!something).*$
Value is not empty^(?=\s*\S).*$
Value is alphanumeric^[a-zA-Z0-9]*$
Value contains only letters^[a-zA-Z]*$
Value length (1-20 chars)^.{1,20}$
Only numbers^[0-9,;]+$
Checks if the field's value is unique within the dataset[unique]
Checks if the field's value is unique within the dataset and ensures it's length (1-20 chars)^.{1,20}$[unique]
Allow only PDF files (files with "pdf" file extension).*?\.pdf
Starts with upper case letter followed by 9 numbers[A-Z]{1}\d{9}
Starts with 2 letters, upper or lower case and followed by 6 numbers[a-zA-Z]{2}\d{6}
Warning

Please note that there is a bug in Confluence editor with rendering placeholders for macros that have {} in their parameters.

Something like

Image Added

or

Image Added

(depending on what is inside the {})

This could be safely ignored - this affects only rendering of a macro placeholder in the editor