Prefill form using URL?

  • 31 August 2015
  • 9 replies
  • 946 views

I am looking to prefill the email address field on my customer portal using the URL.

The reason for this is that many users from our housekeeping department (not computer literate) use the helpdesk portal to submit tickets regarding maintenance in the rooms. They cannot type the email address correctly and sometimes I end up getting new customers created in the portal because they have typed the email address wrong. So I am looking to create a shortcut on the desktop of the shared computer that prefills the form with the email address. I cannot keep the user logged in because guests also use these laptops.



I tried something like this by using inspect element and trying to find the ID of the email field.

https://mycompany.freshdesk.com/support/tickets/new?helpdesk_ticket[email]=someone@company.com


or


https://mycompany.freshdesk.com/support/tickets/new#helpdesk_ticket[email]=someone@company.com


9 replies

Hi Ryan,


As per the current design, We do not allow pre filling the forms using the URL since we only support REST API.


You could achieve your requirement by using our Feedback widget in which you could pre populate field values. 


You could add the feedback widget code for your account available under Admin -> feedback widget to a local HTML file and update the code to pre populate the email address and save it in the local workstation. When the user access the file, It will load the feedback widget with the email address populated.


Similarly, You could add the code to a different HTML for the next workstation and update the email address for that workstation. 


Please refer to the solution articles for instructions on feedback widget and pre filling feedback widget.


https://support.freshdesk.com/support/solutions/articles/37690


https://support.freshdesk.com/solution/articles/154064-pre-populating-feedback-widget-form





Hi,




I also need to pre-populated my widget but my design can't use the popup feedback widget shown in :


https://support.freshdesk.com/solution/articles/154064-pre-populating-feedback-widget-form




Has the embedded widget been updated to support customization?








Hi Steve,



You can follow the same steps for the embedded widget as well !

















Best Regards,


Thriyam

















I'm looking for the possibility to preset contact info on a ticket form, is this still no possible?

Let me give little more background.

We have a network of stores that open ticket about some other system they use.

I'd like to avoid to ask them to have a new set of credentials for Freshdesk, so the idea would be to allow them to open ticket thru a (possibly) private form, maybe invoked by one of the systems, having contact and company fields preset but allowing them to choose category, subcategory, description, etc.

Any idea?

Thanks in advance.

Alfredo 


Hi, I also need to populate the ticket form via url query string parameters. Is this possible in 2023?

Thanks.

Alex. 

Userlevel 2
Badge +2

Hi @ryan.mcallister,

Welcome to Freshworks Community :)


We do support a prefill for ticket fields as a part of Widget API in the Feedback widget. Refer to the below API documentation for more reference.

1) Prefill Details about your customer: https://developers.freshdesk.com/widget-api/#identify

2) Prefill other Fields: https://developers.freshdesk.com/widget-api/#prefill-fields
 

However, if you are referring to the Ticket form, prefill it inside the portal. In that case, We would recommend you to get in touch with the help of your developers and make use of portal customization and alter the code to cater for your business needs. Kindly navigate to Admin->Portal->Customize Portal and modify the code line accordingly
 

Portal customization help article: https://support.freshdesk.com/en/support/solutions/articles/65026-complete-layout-customization

https://support.freshdesk.com/en/support/solutions/articles/50000003753-customizing-your-customer-portal

 

Here’s to you

Vidya D
 


Learn something new today, get recognized for your contributions, stay on top of product updates and build meaningful connections in our Freshdesk community. Fresh ideas, quality service :) 

Thanks @Vidya Deenadayalan for the details.

Are there any plans to make this happen? It’s nice that it’s possible on the Widget. However, it would be even more useful for us with the Form.

We really need the prefill using URL parameters or something to guarantee the best customer experience.

 

Thanks a lot!

Badge +1

💪

Reply