You can set up a ticket form that has pre-filled values in specific fields (such as the Subject or Description fields). This can save time for your end users and get them closer to a resolution. It also benefits your support agents by ensuring they have accurate and specific input from customers.
For example, if an article in your help center explains how to troubleshoot a coffee maker, you can create a link at the end of that article that opens a ticket form pre-populated with the coffee maker model and issue. Users who click this link will have much less information to fill out when submitting their ticket.
This article includes the following sections:
Related articles:
Configuring a pre-filled ticket form
When you create pre-filled ticket forms, you add parameters for the fields that you want to pre-fill to the URL of the form. If you have multiple ticket forms, you’ll also include the specific ticket form ID in the URL.
To configure pre-filled fields in a form
- Copy the URL for the ticket form that end users see when they click Submit a request and paste it into a text editor file.
It should resemble this, where mycompany is your subdomain: https://mycompany.zendesk.com/hc/en-us/requests/new?Note: If you have host mapping, your URL will look different from the previous example (see Host mapping - changing the URL of your help center).
- (Multiple ticket forms only) In Admin Center, click
Objects and rules in the sidebar, then select Tickets > Forms. Select the ticket form you want to pre-fill, then copy the form ID from the URL in Support and paste the ID to the end of the URL in your text editor.
- In Admin Center, click
Objects and rules in the sidebar, then select Tickets > Fields. Copy the field values you want to pre-fill and paste them along with values to the end of the URL in your text editor.
For system values, copy the title of the field (for example "Subject"). Use the following format to paste the title at the end of the URL that you are building, along with the value that you want to assign to the field:
&tf_{title}={value}
For custom values, copy the Field ID of the field (for example, “12345”). Use the following format to paste the Field ID at the end of the URL that you are building, along with the value that you want to assign to the field:
&tf_[fieldID}={value}
- Continue adding fields and values to the end of the URL in your text editor as needed.
The parameters should be similar to the following example:
&tf_subject=Faulty charger 999 recall&tf_12345=USA
- Copy the URL from the text editor and paste it wherever you want to link end users to the pre-filled form.
Your final URL should resemble one of the following examples:
Single ticket form:
https://www.example.zendesk.com/hc/en-us/requests/new?tf_subject=Faulty charger 999 recall&tf_12345=USA
Multiple ticket form:
https://www.example.zendesk.com/hc/en-us/requests/new?ticket_form_id=1500000300222&tf_subject=Faulty charger 999 recall&tf_12345=USA
Parameter keys and values
The URL parameter keys and values differ based on what type of field you want to pre-fill. There are two different field types that are used in a request ticket form:
-
System fields - are the default fields in a ticket and have a unique name.
-
Custom fields - are fields that you can create to supplement the information that is already being gathered from the existing system fields.
System fields
The URL parameter of system fields uses the prefix tf_
followed by the field name. For example tf_subject
. For more information, see System ticket fields. Use the following parameters for the Zendesk system fields:
- Email:
tf_anonymous_requester_email
- Priority: Include the value type (low, norm, high, urgent), after the field name, for example
tf_priority=high
- Type: Include the value type after the field name, for example
tf_type=incident
- Description:
tf_description
- Subject:
tf_subject
- Due date: (Used when Type=task) Use the canonical date format YYY-MM-DD, for example
tf_due_at
- Cc: (Used when a user is logged in). Separate the emails with a comma, not a space, for example
tf_collaborators=name1@example.com,name2@example.com
- Organization ID: Include the value type after the field name, for example
tf_organization_id=123456789
Custom fields
The URL parameter of custom fields uses the prefix tf_
followed by the field ID. For example tf_40630945
. For more information, see About custom field types. With custom objects, you can create the following custom fields:
- Multi-select: Use field tags as the values and separate them with a comma, not a space, for example blue,green,red.
- Drop-down menu: Use the tag associated with the value. For example
tf_40630945=dog_beagle
. - Checkbox: Use the value true/false
- Decimal: Use integers and non-integers (for example, -8.012345679). Do not use commas.
- Date: Use the canonical date format: YYYY-MM-DD
Using pre-filled ticket forms with SSO authentication
When you use pre-filled ticket forms in environments with single sign on (SSO) authentication, end users must be logged in before they can submit a ticket. This means that if an end user accesses the pre-filled ticket form from another source (for example, website or QR code), they must be logged in to see the initial values in the pre-filled ticket form. If they are not logged in, they will be prompted to log in before being directed to the ticket form. Because users are accessing the form from the login page rather than from the original link or QR code, the pre-filled ticket values no longer appear. Users can still fill out the form and submit the ticket, but they will not see any pre-filled values.
To ensure that users can access pre-filled ticket forms at all times, you can choose to not require user authentication prior to access the ticket form. Alternatively if your environment requires user authenticaion in all cases, you can include content for users wherever they access the link, instructing them to return to this link after they log in to the environment. Once they are logged in, they can click the link or use the QR code to access the pre-filled ticket forms.
103 Comments
Yes, everything needs to be lowercase, among other restrictions. I haven't re-read the main article to see if they've updated it, but I wrote up a summary of things that weren't made clear in a comment above...
https://support.zendesk.com/hc/en-us/articles/4408839114522/comments/4850417035162
Is there a possibility to parse the external (user) id with the form? In the system fields I see e-mail and organization ID, but I only have the external user id available. I would like to use it to match the new ticket to its creator.
Good day Jimmy van der Have,
Thank you for your post, hope you are doing well!
Unfortunately, as written here : System ticket fields
The external_id isn't a system ticket field.
Only the fields listed in this doc can be used as "system" field to pre-fill ticket fields.
However, you can still create a dedicated custom field and pass your external_id to the ticket via the usage of the ticket field ID as below :
&tf_[fieldID}={value}
From our perspective, the external_id isn't a "native" Zendesk user identifier in Support to tie a ticket to a user but is meant for external systems as outlined here : User's attributes.
Hope this clarifies it! Have a great rest of your day.
Best regards,
Hello Colleagues,
Is this possible with Zendesk: to make pre-filled fields with information gray text to set an example for the Customer, what information do we expect from him? Moreover, if the Customer did not enter anything (for non required fields) , the field would be empty. And if he clicks this field, then he does not need to delete this text, but instead, it is enough just to start entering his description.
Example: https://www.tp-link.com/en/support/contact-technical-support/#E-mail-Support
<textarea cols="20" rows="10" name="description" maxlength="1600" placeholder="Example:Hello. I have low speed via WiFi connection."></textarea>
Alexey Finkin
I'm not sure and would need to test, but you may be able to use the redirect script approach here - https://support.zendesk.com/hc/en-us/articles/4408886627866 . In short, the script replaces a string in the URL with another string.
My hypothesis is that since this method preserves autofill parameters, you could have your redirect script use autofills. IE. if the form ID is #321123321 , have something like this:
Since we're talking about replacing a form ID instead of an article ID (as described in the article, you would need to update the FOR statement to use 'https://YOURSUBDOMAIN.zendesk.com/hc/en-us/requests/new?ticket_form_id='
This wouldn't solve the change in the text color, but might handle inserting the text when they select a form.
Request #11547331 "hello. question explained in the..." was closed and merged into this request. Last comment in request #11547331:
(12:12:45 PM) Z Bot: Hi, I'm Z Bot, your digital assistant. What would you like to do?
ASK A QUESTION, MANAGE SUBSCRIPTION, REPORT AN ISSUE, LEARN HOW TO USE ZENDESK
(12:12:56 PM) Web User alexey.finkin@brightpattern.com__zendesk…: Ask a question
(12:12:57 PM) Z Bot: OK. In a few words, describe what you need help with.
(12:14:02 PM) Web User alexey.finkin@brightpattern.com__zendesk…: Hello. I have checked the article about pre-filled ticket forms
Is this possible with Zendesk: to make pre-filled fields with information gray text to set an example for the Customer, what information do we expect from him? Moreover, if the Customer did not enter anything (for non required fields) , the field would be empty. And if he clicks this field, then he does not need to delete this text, but instead, it is enough just to start entering his description.
Example: https://www.tp-link.com/en/support/contact-technical-support/#E-mail-Support
(12:14:06 PM) Z Bot: These resources might help:
(12:14:06 PM) Z Bot: Can I make a custom checkbox field required in Zendesk Sell? https://support.zendesk.com/hc/en-us/articles/4413000131226-Can-I-make-a-custom-checkbox-field-required-in-Zendesk-Sell-?auth_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoxMDU1NzY1NywidXNlcl9pZCI6bnVsbCwidGlja2V0X2lkIjpudWxsLCJkZWZsZWN0aW9uX2lkIjo1NzQyMTE4NjExNzM4LCJhcnRpY2xlcyI6WzQ0MTMwMDAxMzEyMjYsNDQwODg4MTcyOTQzNCw0NDA5NzI5NzM3MTE0XSwidG9rZW4iOm51bGwsImV4cCI6MTY4NzYyNjg0NX0.Fm9lDkhxQdw5w7ou5gN53iDxprNzs_e8hAQ5l3Ewe2s&utm_source=Answerbot
How can I add additional ticket type options? https://support.zendesk.com/hc/en-us/articles/4408881729434-How-can-I-add-additional-ticket-type-options-?auth_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoxMDU1NzY1NywidXNlcl9pZCI6bnVsbCwidGlja2V0X2lkIjpudWxsLCJkZWZsZWN0aW9uX2lkIjo1NzQyMTE4NjExNzM4LCJhcnRpY2xlcyI6WzQ0MTMwMDAxMzEyMjYsNDQwODg4MTcyOTQzNCw0NDA5NzI5NzM3MTE0XSwidG9rZW4iOm51bGwsImV4cCI6MTY4NzYyNjg0NX0.Fm9lDkhxQdw5w7ou5gN53iDxprNzs_e8hAQ5l3Ewe2s&utm_source=Answerbot
Can I report on the ticket description field? https://support.zendesk.com/hc/en-us/articles/4409729737114-Can-I-report-on-the-ticket-description-field-?auth_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoxMDU1NzY1NywidXNlcl9pZCI6bnVsbCwidGlja2V0X2lkIjpudWxsLCJkZWZsZWN0aW9uX2lkIjo1NzQyMTE4NjExNzM4LCJhcnRpY2xlcyI6WzQ0MTMwMDAxMzEyMjYsNDQwODg4MTcyOTQzNCw0NDA5NzI5NzM3MTE0XSwidG9rZW4iOm51bGwsImV4cCI6MTY4NzYyNjg0NX0.Fm9lDkhxQdw5w7ou5gN53iDxprNzs_e8hAQ5l3Ewe2s&utm_source=Answerbot
(12:14:07 PM) Z Bot: Did you find what you needed?
YES, NO, I STILL NEED HELP
(12:14:18 PM) Web User alexey.finkin@brightpattern.com__zendesk…: Yes
(12:14:19 PM) Z Bot: Let me know if I can help with anything else.
(12:14:19 PM) Z Bot: We would like to hear more about your experience today.
(12:14:20 PM) Z Bot: Share feedback https://surveys.zendesk.com/jfe/form/SV_dciF4NzXSRbUIho?user_email=alexey.finkin@brightpattern.com&account_id=128674,1398136,2185156,2243112,2260141,900161,9100681,9907401,995118&segment=org__market_segment__smb&conversation_id=2dfc21717238fa5ab307839c
(12:14:33 PM) Web User alexey.finkin@brightpattern.com__zendesk…: Is this possible with Zendesk: to make pre-filled fields with information gray text to set an example for the Customer, what information do we expect from him? Moreover, if the Customer did not enter anything (for non required fields) , the field would be empty. And if he clicks this field, then he does not need to delete this text, but instead, it is enough just to start entering his description.
Example: https://www.tp-link.com/en/support/contact-technical-support/#E-mail-Support
(12:14:36 PM) Z Bot: These resources might help:
(12:14:37 PM) Z Bot: Why do I receive tickets with "No content" in the subject or description? https://support.zendesk.com/hc/en-us/articles/4408843103642-Why-do-I-receive-tickets-with-No-content-in-the-subject-or-description-?auth_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoxMDU1NzY1NywidXNlcl9pZCI6bnVsbCwidGlja2V0X2lkIjpudWxsLCJkZWZsZWN0aW9uX2lkIjo1NzQyMTA0Nzg4NTA2LCJhcnRpY2xlcyI6WzQ0MDg4NDMxMDM2NDIsNDQxMDYxMTM5MjE1NCw0NDEzMDAwMTMxMjI2XSwidG9rZW4iOm51bGwsImV4cCI6MTY4NzYyNjg3Nn0.YoRLsLZx2olCzSW9z7ZeLNj9QaAJYtOEawrj5sY8jHY&utm_source=Answerbot
Why does my customer's name appear incomplete in Support? https://support.zendesk.com/hc/en-us/articles/4410611392154-Why-does-my-customer-s-name-appear-incomplete-in-Support-?auth_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoxMDU1NzY1NywidXNlcl9pZCI6bnVsbCwidGlja2V0X2lkIjpudWxsLCJkZWZsZWN0aW9uX2lkIjo1NzQyMTA0Nzg4NTA2LCJhcnRpY2xlcyI6WzQ0MDg4NDMxMDM2NDIsNDQxMDYxMTM5MjE1NCw0NDEzMDAwMTMxMjI2XSwidG9rZW4iOm51bGwsImV4cCI6MTY4NzYyNjg3Nn0.YoRLsLZx2olCzSW9z7ZeLNj9QaAJYtOEawrj5sY8jHY&utm_source=Answerbot
Can I make a custom checkbox field required in Zendesk Sell? https://support.zendesk.com/hc/en-us/articles/4413000131226-Can-I-make-a-custom-checkbox-field-required-in-Zendesk-Sell-?auth_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoxMDU1NzY1NywidXNlcl9pZCI6bnVsbCwidGlja2V0X2lkIjpudWxsLCJkZWZsZWN0aW9uX2lkIjo1NzQyMTA0Nzg4NTA2LCJhcnRpY2xlcyI6WzQ0MDg4NDMxMDM2NDIsNDQxMDYxMTM5MjE1NCw0NDEzMDAwMTMxMjI2XSwidG9rZW4iOm51bGwsImV4cCI6MTY4NzYyNjg3Nn0.YoRLsLZx2olCzSW9z7ZeLNj9QaAJYtOEawrj5sY8jHY&utm_source=Answerbot
(12:14:37 PM) Z Bot: Did you find what you needed?
YES, NO, I STILL NEED HELP
(12:14:42 PM) Web User alexey.finkin@brightpattern.com__zendesk…: No, I still need help
(12:14:43 PM) Z Bot: Do you want to connect with our sales team, product support team, or another team? You can also ask another question.
CONNECT TO SALES, CONNECT TO PRODUCT SUPPORT, CONNECT TO ANOTHER TEAM, ASK ANOTHER QUESTION
(12:14:49 PM) Web User alexey.finkin@brightpattern.com__zendesk…: Connect to product support
(12:14:53 PM) Z Bot: Help me route you to the best agent by answering these questions:
(12:14:53 PM) Z Bot:
(12:25:11 PM) Web User alexey.finkin@brightpattern.com__zendesk…: How is this impacting your business?: I have a question
Which product do you need help with?: Ticketing system (Support)
Share additional details: hello. question explained in the comment: https://support.zendesk.com/hc/en-us/articles/4408839114522/comments/5742116358682
(12:25:16 PM) Z Bot: OK. I've sent this conversation to our team.
(12:25:16 PM) Z Bot: Most customers hear back in 1 to 2 business days. Feel free to check back later or watch for an update sent to alexey.finkin@brightpattern.com.
(12:25:17 PM) Z Bot: Remember, the more details you provide now, the more helpful our team can be with their first reply. So before you go, make sure to send along any extra information that might help our team get to work.
(12:25:17 PM) Z Bot: Enjoy the rest of your day.
Hi! I am fascinated by this idea. I was wondering if we had some variables saved in Google Tag Manager, if we would be able to use this to populate certain text fields using the values of those variables?
Alexey Finkin
https://support.zendesk.com/hc/en-us/articles/4408839114522/comments/5742116358682
We have implemented this by adding placeholder in script.js
var url_params = new URLSearchParams(window.location.search);
if (url_params.has('hints') && url_params.hints !== 'false' && url_params.hints !== '0') {
$('#new_request #request_description').height('350px');
$('#new_request #request_description').attr(
'placeholder',
`[Good example]`
);
$('#new_request #request_subject').attr(
'placeholder',
`[Good example]`
);
}
Hello, is it possible to add a tag to a ticket ? Not an existing field, but just a tag.
You can create a replica of your GTM variables as a custom ticket field Zendesk and use to format mentioned in the article for pre-filling.
If you're looking to automate it, I don't think that will be within the ball park.
Hi Stephanie,
Please see here for details on adding tags to a ticket.
Thank you Neil, if I do this, I need to activate the custom ticket field in the form, right? So, customers would see this field.
Is there any way to have a field on the agent interface for a particular form. But hide it on the customer side?
Hi Stéphanie,
Custom fields have 3 different permissions,
If you set the ticket field permission to "Agents can edit" then it will not be visible when the end user is submitting a request using the Form but will still be visible to the agents within the ticket in Support.
See: Adding custom fields to your tickets and support request form
Hope this helps.
Please sign in to leave a comment.