There is a ticket module (https://modstore.pro/packages/users/tickets).
The form for adding a ticket looks like this:
<form class="well create" enctype="multipart/form-data" method="post" action="" id="ticketForm">
<div class="col-md-12 col-sm-12">
<label for="pagetitle">Name</label>
<input type="text" id="pagetitle" name="pagetitle" placeholder="Name" class="form-control" value=""/>
<span class="error"></span>
</div>
....
<div class="file-upload">
<div class="ticket-form-files">
[[+files]]
</div>
</div>
<div class="form-group">
<div class="col-sm-6">
<button class="btn btn-lg pull-left draft" name="draft" type="submit"><i class="fa fa-check"></i> Send</button>
</div>
<div class="col-sm-6">
<button class="btn btn-lg pull-left draft" type='button' onclick="clearSearchForms()"><i class="fa fa-trash-o"></i> Clear form</button>
</div>
</div>
</form>
Required to do [[+files]] validation when submitting a form. Verification: the number of attached images is at least 3. The form should not be sent without attached files.
The problem is that [[+ files]] is not a field. This is the snippet output. How do I check?