Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

First Name + Last Name Boxes instead of Full Name

Can we get First Name and Last Name as separate fields instead of the single field of Full Name.

It would be more personable to send emails to customers using their first name instead of their full name.



  • I think that you would be able to quickly implement this change yourself. Something like this ought to do the trick.

    edit /include/
    circa line 56 locate:
        function getName(){
    return $this->ht['name'];

    and change it to:

        function getName(){
    $names = explode(' ',$this->ht['name']);
    return $names[0];

    note: this is untested, but it should give you an idea of how and where.
  • I'm not a PHP guru, so I may need a bit more hand holding.

    This is what I am trying to do, please let me know if your code changes will achieve this?

    1. when customer fills out a ticket, it will ask them for First Name and Last name (the current form just says Full Name)
    2. when we (support) respond to the customer request, we want to use First Name as the salutation, not full name.

    So today OST out of the box sends emails that look like:

    Dave Smith,
    Thank you for submitting a ticket...

    We would like our emails to say:

    Thank you for submitting a ticket...

    Thanks in advance for your help.
  • It will still ask them for name.

    however it should make it so that when it displays the name [when used in template emails] it will only display first name.
  • I disagree. I think we should keep the full-name field, because tickets created via email cannot have a first-name and last-name field.

    What I think we need is a nice splitting mechanism, so in the email templates and page templates, you could use

    Hi %{},

    for instance
Sign In or Register to comment.