添加描述为“Subm附件字段it a request" form

Answered

82 Comments

  • Vlad
    Community Moderator
    The Wise One - 2022

    Hi Vassilios, Yes, you can! Use this code and put it on the very bottom of Submit a request page code.

    Note that DC item should be changed from my code above. Please try and let us know how it goes. ;)

    2
  • Vlad
    Community Moderator
    The Wise One - 2022

    Yup, we can put there another text. Just try to put this code on the bottom of your Submit a ticket page template.

    Let us know the result! ;)

    2
  • Vlad
    Community Moderator
    The Wise One - 2022

    Hi Eddie, yes that is possible ;) Try with this code, just paste it on the very bottom of your Submit a request page (New request) template. Don't forget to replace 123456 with the ID of your form.

    Let us know how it goes ;)
    You should get something like this:

    2
  • Este Rodriguez

    Hello@...or anyone who can help !

    Unfortunately, none of the codes listed on this thread has helped me. It would be helpful to see a screenshot of the HTML code where you are pasting these codes. I would like to just add a description below the Attachments field (see 2nd picture of example I'm trying to produce). The 2nd picture is from the link@...provided.

    2
  • Andrii Kozychko

    Hey, is this code will work in any way?

    I've tried to paste that code to change the "Attachment" field in one of my forms, but it does not work:

    Is there any way to make the ticket unsubmittable if the user has not added the attachment?

    2
  • Vlad
    Community Moderator
    The Wise One - 2022

    Hey Larry and Jorge, please try this out and let us know the results! Paste it in JS tab, after "$(document).ready(function() {".

    $('form#new_request .upload-dropzone').parent().append('

    Your text here Your text here Your text here Your text here

    ');
    1
  • Vlad
    Community Moderator
    The Wise One - 2022

    Here is the code:

    Hope this helps!

    1
  • 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
    Community Moderator
    The Wise One - 2022

    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
  • Dan Ross
    Community Moderator

    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
  • 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
  • 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
  • Zach Bender

    I am trying to check for form and a field drop down option is picked. And if those two options are picked then changes the text.

    Here has what i have come up with

    if(window.location.href.indexOf("123412") > -1 && $('.form-field.request_custom_fields_112313.val() = "Eligibility Letter"') {
    $('div#upload-dropzone').parent().find('label').text('Attach copy of Letter (Required)')
    }

    1
  • Diziana

    Hi Jason,

    Add the below line in your JS code:-

    $('#request-attachments-pool').parent()
    .append(‘ADD_YOUR_DESCRIPTION_HERE’);

    ReplaceADD_YOUR_DESCRIPTION_HEREwith your description text.

    I believe that would work.

    Let us know if you have questions.

    Team Diziana

    0
  • Jason

    @Diziana,

    That worked for me. Thanks!

    Where do I go to learn how to do this kind of think on my own? How did you know what "#request-attachments-pool" is?

    0
  • Gadi Vered

    在js代码的位置你添加这个吗?它的it 2 lines or 1?

    0
  • Jorge Alvarez

    @Diziana

    This no longer seems to be working. I am pasting it at the end of my JS page.

    0
  • Larry Diamond

    I was able to get this to work for me, but when I add the code to the JS file, it universally adds the description text to every form that we created. I want to add it to one specific form, not all of them.

    Could someone help with that?

    Thank you!

    0
  • Nicole Saunders
    Zendesk Community Manager

    Hey Larry -

    Welcome to the Zendesk Community! That's a good question. I've asked one of our support agents to weigh in; you should see a response from someone shortly.

    0
  • Vassilios Lourdas

    Hi, can't I use the placeholders of the dynamic text for that?

    0
  • Vassilios Lourdas

    Hi Vladan, it worked! Thanks a lot!

    0
  • Vlad
    Community Moderator
    The Wise One - 2022

    Woohoo! Thanks for the feedback, Vassilios!

    0
  • Jennifer Rowe
    Zendesk Documentation Team

    Thanks, Vlad! You're awesome.

    0
  • SUMAN BHATTACHARYA

    Hi Vlad,

    How Could I add custom text field as attachment with some blank description placeholder ,because we want to rename that attachment field ,don't want to use the system attachment specific for some form

    0
  • Vlad
    Community Moderator
    The Wise One - 2022

    Hey Suman, just to check, which one of these you want to rename?

    https://cl.ly/nZX0

    0
  • SUMAN BHATTACHARYA

    Yes Vlad , I am talking about this system attachment field, could we rename it or use other custom fields as attachment with some text field where some decription can be written

    0
  • SUMAN BHATTACHARYA

    Hi vlad ,thanks for the reply ,I also want to know how to change the type of request system field name where the form names are showing in a dropdown under a. brand?

    0
  • Vlad
    Community Moderator
    The Wise One - 2022

    Just to make sure could you please send me a screenshot of that field?

    0
  • SUMAN BHATTACHARYA

    this is the screenshot

    the Type of henvendelse ----- the system dropdown for showing the form under a specific brand, we need to change the name for the field also

    0

Pleasesign into leave a comment.

Powered by Zendesk