Required Attachment

Hi,
we have a simple document model with an attachment together with some other fields.
The user can fill out the form and upload a csv file which is required for further processing in a CommonDataServicesEventListener.
All is working fine, but i need the attachment to be required.
Is there a default way with SME (like the other data types) or do we need to write a validation rule?
And if yes which of internal attachment fields need to be involved?

Hello @ronny-stellar-gust,

I gave it a shot by adding the following validation rule:

This leads to a result similar to this.

Thanks, i tried that, but had to change internal field to validate.
What seems to work is the original_filename instead of content, so we are going with that solution.

With “content” in condition, the error does not disappear (also submitting is not possible) after choosing a file. Tried in our app and fresh template with same result (but works in SME form preview).

image

Thank you for your information @ronny-stellar-gust