I have an application and I want to limit the number of entries a user is allowed to make.
So I added a "Confiforms rules for field definition" with the following data:
Condition:
ownedBy:[entry.ownedBy] AND _count:>3
Action to execute:
Validation rule
Message to show when....:
You cannot enter more than 3 entries
This does not hinder me as an administrator from entering arbitrary many entries.
If I however add a "ConfiForms IFTTT Integration Rules" with the following data:
Event:
onCreated
Action to perform:
Send Email
Fire IFTTT action only when...:
ownedBy:[entry.ownedBy] AND _count:>3
then I get this mail. Why does the validation rule not fire, but the IFTTT does?
Any help greatly appreciated
Peter
You probably want to check the createdBy instead
createdBy:[entry._user] AND _count:>3
Or if you want to check the ownedBy field then (as it is a multi-select field)
ownedBy.hasValue([entry._user]):true AND _count:>3
I'm sorry, it still does not work. The formula createdBy:[entry._user] AND _count:>3 never triggers, the same for createdBy:[entry._user]:>3, and createdBy:[entry._user]:3, but (createdBy:[entry._user]):3 *always* triggers, even if the table is empty. Could there be a bug in confiforms?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem solved: the . was missing in the validation rule. Maybe it would be worth to display a warning when the validation rule field in the rule is empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.