I have a form configured with a form field for new tickets that allows users to select their location (branch location).  This ticket form field is located in the e-mail template as %{ticket.location} that is selected by the end-user from a drop-down list of locations when creating the ticket.When it sends out the e-mail, it shows the location "key" and not the actual content of the field.  So if I had:12If I selected 2, it would show 2 instead of "There" in the e-mail that was sent out.  This is making it difficult for those in the field trying to do the tickets since they don't know the locations (and don't want to carry around a conversion table).Is there a way to fix this?

Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.

Thank you for the information.  Please see below:No PHP Error logs related to this issue.osTicket Versionv1.10.4 (035fd0a) —  Up to dateWeb Server SoftwareApache/2.4.16 (Linux/SUSE)MySQL Version10.0.29PHP Version5.5.14Using SMTP to send e-mails.E-mail Template being used:Hi %{recipient.name},New ticket #%{ticket.number} created From:%{ticket.name} <%{ticket.email}>Department:%{ticket.dept.name}Location:%{ticket.location}Contact #:%{ticket.extension}Topic:%{ticket.topic}Subject:%{ticket.subject}%{message} Screenshot of e-mail message agents receive: https://ibb.co/dB9xgyScreenshot of new ticket page: https://ibb.co/gkO7gy

@[deleted]Strange... This works just fine for me on 1.10.4 AND 1.11.0rc-1...maybe you have an older format of Lists?Could you post a screenshot of your values in the database? (ost_list & ost_list_items)Cheers.

Random, minor observation which is perhaps totally unrelated, I'd recommend PHP 5.6 over 5.5.

rblake, consulta, el campo location es un campo personalizado que creaste? como lo declarante en el formulario.Porque yo no logro hacerlo en mi sistema. http://osticket.com/forum/discussion/comment/124685#Comment_124685 s   Espero me puedas orientar. gacias

@[deleted]Here is the ost_list:blankImage URL: https://ibb.co/gebjzJHere is the ost_list_items:blankImage URL: https://ibb.co/kJTKYd@[deleted]Thanks for the observation, working on this.@[deleted]http://forum.osticket.com/d/discussion//email-variables-for-custom-forms

@[deleted]So, you have no `ost_list_items`.. That means you are using a Choices field not a List field as there is no `ost_list` nor `ost_list_items` records.This has been a known issue with Choices fields for quite some time and we are looking at fixing this soon.Cheers.

@[deleted]You know, I said what the heck and decided to work on that real quick....and...well...it wasn't real quick...BUT alas, I have made a pull request to address this issue for version 1.10.4 AND 1.11.0rc-1!Please test this out and get back to me:https://github.com/osTicket/osTicket/pull/4359Cheers.

4 days later

@[deleted]Thank you very much!!  This resolved the issue.P.S. - I know all too well how those "really quick" changes go.  I appreciate you sticking with it to resolution.

@[deleted]No problem! I'm a dev...it's what I do lolCheers.

Write a Reply...