Hi everyone,
We had a requirement for our customers to send us particular documents when dealing with a certain type of request. The way we tackled this was to add a hint below the attachment field asking our customers for the required documents.

How it's done
This is done by editing the code in the script.js file.
Import jquery
If you're on templating API v2, you'll need to import jquery. Instructions are here.
Edit the script.js file
If you don't have it, you'll need to add the following code to the top of the script.js file.
$(document).ready(function(){
})
Within that function, add the following code, changing "Test hint" to whatever text you want to display.
$('div#upload-dropzone').parent().append('<p id=attachment_field_hint>Test hint</p>')
This will create a new element at the bottom of the attachment field and give it the ID of attachment_field_hint. The ID comes in handy if you ever want to make changes to the hint based on conditions.
The
$('div#upload-dropzone')portion of this code snippet is what is used to select the element to add the hint to. You’ll want to update this code to$('input#request_anonymous_requester_email')for it to target the email address field i.e:I hope this helps!
Tipene