...
The important bits are how to set up the filter when it runs and what to add into the validation rule
The goal
We want to check if a person (by email) has already registered. It is important moment, that we actually want to check by email, and not by built-it operator [UNIQUE], which can easily help us with this if we wanted to check by username (built-in Confluence user object). See more on filters here: ConfiForms Filters
...
So, we have a form with a field called "youremail"
We will add ConfiForms Field Definition Rules macro
...
In order to support edits the condition should be chnaged changed to:
Code Block | ||
---|---|---|
youremail:[entry.youremail] AND !id | ||
ConfiForms Form Definition | ||
| ||
youremail :[entry. youremail]Validation rule dataset |
id] |
These translates to: check if email is unique and record's ID not the same as current
There is no need to put other macro properties except the message when validation fails: