I am having trouble getting the rule to work to have my "submit" only function after an attachment is added.
(NOTE - I have a form with several optional sections that make using validation not an option). Thus far I have;
added the Attachment filed as here but with the format rule (instead of validation) to show the message "Form cannot be submitted without attachment" when "count(../my:Attachments/attachmentURL) = 0". So when a user enters the page it defaults to this message. When they add an attachment the message disappears.
I have added the submit button to this section and am trying to get the rule to work such that until an attachment is added, the format rule will disable the control (submit button).
I have tried every possible condition but can't get it to work. Any ideas would be appreciated. (I am working under the premise if I can hide the message I should be able to activate / deactivate the button as well)