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.
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.
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.
Please sign in to leave a comment.