I have created a survey with Survey123 Connect with the option of adding multiple attachments; I've used a begin repeat with only one record in the repeat, which is of 'file' type. There is only one other parameter for the question: it's required to add an attachment if a previous question is marked as 'yes'. It works great.
However, I have noticed that if a user doesn't need to include an attachment, a relationship record is still created in the related table. This isn't consistent, either; sometimes the relationship record is created and other times it isn't.
The problem comes when users are reviewing the collected data in a web map. The parent record's pop-up states that there is an attachment/related record, but when they click on it, there's nothing attached. I'd like to have a relationship only created when there is actually an attachment. So, if there isn't an attachment, the related record section in the parent record's pop-up would say '0' rather than '1'.
Does anyone know a solution for this?