Playground and DEMO space
Most pages provide a storage format for the demo, so you can use the free add-on from Atlassian Confluence Source Editor to import this configuration into your Confluence and see it in action
To import examples from the storage format on Confluence Cloud please see this page
Please note, all the examples here are provided without any obligation and may or may not be incomplete or may have bugs, and we provide NO SUPPORT for these examples and demos.
In this tutorial we show how to ensure your form user will be able to enter just one record without setting "Enforce one entry per user" setting on a ConfiForms Form Definition macro
This is sometimes very handy, as you want to ensure that the enforcement rule works for some but not all
ConfiForms Rules for Field Definition macro is to the rescue!
We will have a form with just one field (for simplicity)
We will add a rule with the following settings
Condition is defined as follows:
We check for record ownership and see how many of these are already registered and we do it only if a user is not in the "confluence-administrators" security group (userInSecurityGroup is the function available in ConfiForms Virtual functions). _count is the context variable you can access from a context Accessing field values and properties#Additionalvaluesavailableinthecontext
Users who are not in the "confluence-administrators" user group will be allowed to enter only one record
Complete form looks like this
And when used by a non admin and there is an attempt to enter another record
Storage format for the solution