I am using a File Field Definition on a confiform and I would like to limit the user to only be able to add one file per form. Is there a way to set this via validation rule?
Hi
As this field type is really a multi-value holding field (you can have multiple attachments per file field per record), you can use asCount virtual function to check how many files holds this field on form submission
The easiest way is to add a ConfiForms Field Definition Rules macro with "Validate" action with condition set to something like (assuming your field field is named "myfile")
myfile.asCount:>1
(dont forget to set error message parameter on the macro!)
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.