I am creating a expense form and I am trying to validate the number of attachments on my form.
First I tried to follow the solution on in this blog post (Attachement in repeating section ) to add attachments to each row in my repeating table. However, this HTML does not seem to actually work. It looks nice on the form but it does not actually do anything with the attachments. And even if it did, I could not find a way to make the field required when the user selects "yes" on the receipts attached field.
I also looked at this post (attachments custom validation )but I do not know how to write JS so this was totally over my head.
I have created a calculated field that adds up the number of times "Yes" is selected on the receipts attached field and ideally I would be able to use that field in the minimum attachments required field on the attachments control, however that does not seem to work either.
A less than idea, but workable, solution would be for me to make the minimum attachments required equal 1 if yes is selected at all, but I have tried a few formulas for that and can not seem to make it work.
Any advice?