최근 검색


최근 검색 없음

Add description to the Attachments field for "Submit a request" form

답변함


2016년 4월 15일에 게시됨

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개

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


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


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


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).

<script>
var ticketForm = location.search.split('ticket_form_id=')[1];
if(ticketForm == "YOUR_TICKET_FORMID_HERE") {

$('form#new_request .upload-dropzone').parent().append('<p>{{dc 'here goes DC item title'}}</p>');
}
</script>

 

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


Legend thank you Dan. Works perfectly!

0


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:

<script>
var ticketForm = location.search.split('ticket_form_id=')[1];
if(ticketForm == "YOUR_TICKET_FORMID_HERE") {

$('form#new_request .upload-dropzone').parent().append('<p>{{dc 'here goes DC item title'}}</p>');
}
</script>

You could have a case for each form ID you wanted to cover.

Hope that helps!

1


Hey team,

I'm using the original code suggested which works

<script>
$('form#new_request .upload-dropzone').parent().append('<p>{{dc 'here goes DC item title'}}</p>');
</script>

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


Thanks @Vladan, that did the trick. Appreciate your help with this one. :)

 

0


Hey Amie, it should work if you put this code at the end of your "New request page":

<script>
$( document ).ready(function() {
$('.form-field.request_anonymous_requester_email label').text('Whatever whenever');
});
</script>

Do you know how to edit your theme files?

1


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


로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물