Skip to main content
Closed for Voting

enconding placeholder

Related products:Freshdesk
  • May 18, 2020
  • 0 replies
  • 7 views

Hi,


I really like the Common Reply Templates and I'm always trying to use as many Placeholders as available.


To generate a subscription URL like this:

https://www.website.com?FNAME=James&LNAME=Bond&EMAIL=jbond@gmail.com


I use the placeholders like this:

https://www.website.com?FNAME={{ticket.requester.firstname}}&LNAME={{ticket.requester.lastname}}&EMAIL={{ticket.from_email}}


Everyting is going perfect until people are using special characters like: ! @ # $% ^ & * () _ |. Especially Javascript-based web applications really hate this kind of input. So, can we solve this by cleanup the information field? Perhaps with an Encode-tage? For example:


https://www.website.com?FNAME={{ENCODE}}{{ticket.requester.firstname}}{{ENCODE}}&LNAME={{ENCODE}}{{ticket.requester.lastname}}{{ENCODE}}&EMAIL={{ticket.from_email}}


That will prevent a lot of input errors!


M. Schouten