Custom Form - add attachement sectionAnswered
Hi, i'm making a custom form for our end-users on our Zendesk Portal. I want to add an attachment section on the form - I want to use the default attachment section on the native request form but I'm not sure how to get/access the file uploaded so I can send it with the request via API.
Is there anything I can do in order to use the native attachment section?
Hi Bonaliza! If you're looking to allow customers to add an attachment when creating a ticket through the form on your "Submit a request" page, "Customers can attach files" must be enabled in the "Attachments" section of Admin > Settings > Tickets in the Support interface. Once this is enabled, end users will see this option — you do not need to add a ticket field for it to appear.
When a customer attaches a file with their ticket submission, you will see the attachment included with their ticket when viewing it as an agent.
I hope this helps! Please let us know if you have any questions or if you had something else in mind. Thanks!
@... Thanks! So how do I add the attachment field to the custom form via api?
Hi Jay F
As long as you've enabled attachments, the field to submit an attachment should display on your custom form by default.
Let me know if you have any issues!
We created a custom form here: https://ticket-form-influencers.herokuapp.com/create_ticket
How do we add the attachment field?
Hi Jay F,
Apologies, I assumed you were working with a custom ticket form directly in the help center. Here's an article which goes in to a bit more detail on how to add attachments to tickets via API - I think this should be more suitable for your use case:
I hope this helps. Feel free to reach out with any questions!
Thank you so much!
I have the attachments enabled
However, i wondered if anyone knew how i can make it required when submitting a form?
Customer reports a damaged product, visits our helpcentre and selects the damaged items form
Before the ticket can be submitted by the customer, they need to attach an image
I'd recommend taking a look at the following user tip: Requiring a ticket attachment if a particular dropdown option is selected
You may be able to use the custom code shared to set this up in your own Guide theme.
I hope this helps!
I have a few questions about attachments in "Submit a request"
1. How to edit the title of the default attachment
2. How to duplicate one or more attachments?
3. Should I add some command at the very bottom at the page "new_request_page.hbs"?
Please sign in to leave a comment.