Pre-populate ticket submission form field via query string (Help Center)
CompletedIt would be great to build in the ability to pre-populate fields in the new Help Center ticket submission form, without having to use Javascript. I don't think this is currently supported.
(like this thread: https://support.zendesk.com/entries/87397-pre-populate-the-new-ticket-form- but without JS)
EG: we could link to...
https://domain.zendesk.com/hc/en-us/requests/new?request_subject=Hello
https://domain.zendesk.com/hc/en-us/requests/new?ticket_form_id=5481&request_subject=Hello
or
https://domain.zendesk.com/hc/en-us/requests/new?ticket_form_id=5481&request_custom_fields_22780728=12345
And the appropriate fields would be prepopulated with the appropriate value from the query string.
Thanks
-
Hey,
This app on the marketplace allows you to prefill form fields with parameters.
https://www.zendesk.com/apps/support/qr-form-field-prefill/?source=app_directory
Even has a little sidebar app to generate the prefilled links as links or QR codes.
-
Adding my vote for ZenDesk to support this feature without the use of a paid-for app.
-
Another vote to have Zendesk natively support this feature.
-
+1 here. Seven years is making Salesforce look nimble by comparison.
-
I have given up on Zendesk adding any useful new features, like this one.
If it wasnt for the fact they have the (in my opinion) best gui for IT helpdesk we would have left them for good.
-
Adding my vote too
-
Another vote from me. 7 years for basic functionality contained in all other ticketing support platforms. Considering the premium Zendesk charge it's pretty poor no?
Seems every thread I read on Zendesk support forms are full of customers asking for things, community managers saying they're chasing product, and then nothing else happening.
-
This request is 7 years old, we still need this. Why aren't Zendesk listening?
-
They are earning too much money on a fairly good system, and got lazy and happy?
-
Can we get a Zendesk 2020 official response on this?
-
What a time saver for us this would be - currently about 6 or 7 clicks to achieve this. Multiply that by 100+ customers a day and that's a LOT OF CLICKING!!!
-
+1
-
LOL - just read my comment on this topic, adding my support for this (very basic functionality) enhancement from 3 years ago!
-
Hi,
Here is my Javascript code I wrote and inserted on the page "new_request_page.hbs" to prefill the field "Subject", with the GET parameter "request_subject" :
https://zendesk.com/hc/fr/requests/new?ticket_form_id=353453542332&request_subject=Subject
<script>
// Get all parameters
$.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
}// Prefill form
function prefill_form()
{
document.getElementById("request_subject").value = decodeURI($.urlParam('request_subject'));
}window.onload = prefill_form;
</script> -
Gaspard This works great, I am however trying to pre-select a value from a drop down. I tried hacking your code a bit but I don't have the knowledge or skill.
Can you make this work for this situation?
Thanks
Dave
-
Hey,
The code below works for every field with the bold part replaced with the ID of the dropdown and the TAG of the field option
https://demo.premiumplus.io/hc/en-us/requests/new?ticket_form_id=360000534040&request_custom_fields_360007388180=some_text
$(document).ready(function() {
/* Start QR */
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = window.location.search.substring(1),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[1] == "false"){$("#" + sParameterName[0]).prop("checked",false);}
else if (sParameterName[1] == "true"){$("#" + sParameterName[0]).prop("checked",true);}
else {$("#" + sParameterName[0]).val(decodeURIComponent(sParameterName[1]).replace(/\)\(/g, "<br/>"))};
}
};
getUrlParameter("");
/* End QR */
}); -
Hi - What are the options for having this supported inherently by Zendesk?
-
Holy ¨¨ 7 years??
-
👋 We are looking for your valuable insights and perspectives. We’ve been thinking for a while about making our Web Form experience as valuable as possible for you. We think we’ve got some pretty good ideas but want to get your valuable opinion on how best to do it, based on your needs. Help us fill-in some of the blanks, by taking part in this quick survey 🙏
-
Hi everyone!
Thanks for all of your feedback on this issue. We understand it's been difficult to give your users a more seamless experience without using some extra custom coding. Our product team is planning to address this issue.
Again, we really appreciate you all voices your need and especially those who went into detail about what their business goals are. This helps us understand the full scope and impact to your business.
Stay tuned for more updates on this issue!
-
I was looking for this functionality today since I can do this using Wufoo forms / surveys! Looking forward to this.
example: setting the request topic
?request_custom_fields_52616568=getting_started
-
+1. Today we sometimes find ourselves in the awkward position of posting a link to a form and also having to add a bunch of text instructions for how to fill out fields to make sure the ticket gets routed appropriately. (Or contributing to form bloat by creating a bunch of really specific forms.)
-
This came up again today. Does anyone have an update on availability? Thanks!
-
Our Form Pre-fill app contains the necessary code to add this to any Zendesk Help Center running Guide Professional or Higher:
https://www.zendesk.com/apps/support/qr--form-field-pre-fill/
-
Amazing!!!! 🎉
Please sign in to leave a comment.
85 Comments