Recent searches
No recent searches
Add description to the Attachments field for "Submit a request" form
Answered
Posted Apr 15, 2016
At the bottom of our "Submit a request" form in our Help Center is an automatic upload form for adding attachments. I would like to add a description similar to the description I've added to my other fields. The problem is, the Attachments field is not accessible in our Ticket Fields Admin Settings so I'm not able to add a description yet I am able to add one to all the other fields (i.e. Subject, etc). Below is an example showing our "Submit a request" form for context.
I looked at the HTML for our Help Center and found there is a template called "New Request Page" with a reference to "{{request_form}}" but I'm not sure how to access that or edit it.
0
83
83 comments
Trapta Singh
Hi @Huong-Ly Dang,
Try putting your code at the bottom of the footer.hbs template under <script> tag.
Thanks
Team Diziana
0
Coty Inc.
Hi Vladan,
I have verified, no line break at the end&beginning of my string in the DC item.
Here is the link of my HC : https://e-education.zendesk.com/hc/en-us/requests/new
Many thanks,
Ly
0
Coty Inc.
Hi @Trapta,
Thank you so much for your tips : it works.
However it works for all languages except French, any idea why ?
Her is the link of my HC : https://e-education.zendesk.com/hc/fr/requests/new
Many thanks,
Ly
0
Coty Inc.
Additional question : how can I make this description appear in my web widget as well ?
0
Trapta Singh
Hi @Huong-Ly Dang,
Glad to hear that it works for you. To make it work for French replace your code from
to
and it will work.
Let me know if you face any issue.
Thanks
Team Diziana
0
Coty Inc.
Hi @Trapta,
You tips is awesome ! Works for French now. :D
Additional question : how can I make this description appear in my web widget as well ?
Kind regard,
Ly
0
Gitte Kjargaard Jensen
How should the code look, if i want to have line break eg
"Step 1: uploade picture
Step 2: ...."
BR Gitte
0
Vlad
Hi Gitte, something like this will work:
So the code will be like:
0
Gitte Kjargaard Jensen
Thanks :-)
Does the same apply if i want: to have it looking like this:
“For at kunne hjælpe dig bedst muligt, har vi brug for :
Se eksempel her (link)”
Thanks in advance Gitte
0
Vlad
Hmm no, it will not, it should be like:
Here what you will get https://cl.ly/a9e709e61cd5 so you will need just some CSS styling. like:
Hope this helps :)
0
Jacob the Moderator
Hi Vladan and Trapta,
I have an issue with the Dynamic Content not rendering the text below the upload dropzone. I expected the following script to render the Dynamic content, but it doesn't.
The same script, but with plain text instead of DC works as expected.
The DC is valid and outputs fine, when applied elsewhere in the template.
Any ideas what I messed up? Thanks!
0
Vlad
Hey Jacob, maybe your DC text contains quote symbol? That will break the code.
In that case instead of eg
"we're"
just put
"we\'re"
Hope this helps. If not, please provide us with more infos :)
0
Jacob the Moderator
Thanks Vladan!
There was a quote symbol, but removing it didn't make the DC content appear.
It appears that my problem was line breaks in the DC, once I formatted the content to remove any line breaks the content appeared.
0
Amie Brennan
Hi friends,
I've been trying to follow this along but not having much luck. I'm trying to adjust the text which is associated with the email field. Instead of saying "your email address" i want it to say "email address associated with your online account"
I'm not having much luck with the code suggestions in the comments on this article. Wondering if anyone out there might know how I can do this at all?
Best,
Amie
1
Vlad
Hey Amie, it should work if you put this code at the end of your "New request page":
Do you know how to edit your theme files?
1
Amie Brennan
Thanks @Vladan, that did the trick. Appreciate your help with this one. :)
0
Grant Foster
Hey team,
I'm using the original code suggested which works
However just wondering if it is possible to apply different descriptions on different forms? A generic one for the attachment field doesn't make sense across all of our forms.
0
Dan Ross
Hey Grant,
You could do this with some conditional code on your new_request page just before the script you have above.
Try something like this:
You could have a case for each form ID you wanted to cover.
Hope that helps!
1
Grant Foster
Legend thank you Dan. Works perfectly!
0
Raúl
Is there a way to change the "Attachment" placeholder text for the dropzone based on the selection in a specific field? We're trying to change the text based on the user selection of one of the dropdown menus in our contact form. We're also using dynamic text, so we'd want to be able to set that up with the dynamic string.
Based, on what I've read in the comments, the following should work to replace the placeholder with dynamic text, right? But, how do we make it so it is displayed based on a user's selection (similar to a conditional field).
If that isn't possible, is there a way to add the line of dynamic text below the dropzone based on the user's selection?
1
Customer Admin
Hi all,
I see this post is 2 years old
I'm trying to insert a description in default form attachment
Is there any change ? I Can't see any text appearing in attach description, used all tips in thread but with no luck
Thanks in advance for help
1
Vlad
Hey Andrea, is you submit a ticket page visible outside? If yes, could you send me a link?
If not, please put your code here so I can check. Thanks!
0
Customer Admin
Yes is visible,
form is cutted in some part to make it easier embedding in website, but is visible to anonymous user
https://kasanova.zendesk.com/hc/it/requests/new
0
Vlad
hey Andrea, thanks for the link. I just checked but I can't see the code there, is it already added?
Also, please include jquery in your page, just paste this code into the Document Head.
0
Customer Admin
YESSSSS !
Great job Vladan, with your script everything works like a charm, text appears as expected.
Thank you very much, I am ready to publish, now
Cheers
0
Vlad
Glad to hear that, Andrea! Cheersss!
0
Kavi, Raghu
Hello Help desk team
Can someone guide me how to access my JS code to edit my attachment description field ?
0
Grant Foster
@... I'm not from the Help Desk team but you should be able to edit your JS code from the Theme section (under edit code)
https://support.zendesk.com/hc/en-us/articles/115015722628-Editing-the-code-for-your-live-Help-Center-theme-Guide-Professional-and-Enterprise-
0
Nicole Saunders
Thanks for jumping in, Grant!
0
Permanently deleted user
I am very happy to report that @...'s suggested script worked perfectly for my needs:
Mine is not for a hardware fault report, but I needed custom text for the attachments field on just ONE form, not all of them. And now I have it. Thanks Vlad!
1