Adding a hint below the attachment field
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.
-
Hello @...,
I love this user tip you submitted! I'll be sure to add this to our weekly digest this week so that other members can take a look at this epic tip.
Best regards.
-
Hello, do you know how to add a hint to the subject field?
-
Hi Jonathan,
For most (if not all) other ticket fields you can use the Description shown to end users field in the the Ticket Field configuration.
-
Hello Simon,
As a complement to your useful contribution, through our App you can tag tickets as per their attachment extension (ri_application/pdf, ri_application/docx, ri_application/jpg, etc.): https://www.zendesk.com/apps/support/respira-tag-files/
-
Hello
Thanks a lot for your help.
Is there a way to change attachments to required?
(optional -> required) -
Hi everyone!
Anyone found a way to add a custom fields below the attachment zone?
Best regards!
Raphaël
Vous devez vous connecter pour laisser un commentaire.
6 Commentaires