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

Custom field and custom list display in scp

Is there any way to get a new custom field and new custom list to display in the staff interface?  It displays no problem in the client interface - but information entered into the form on the client side is not retrievable currently in the staff side.   What needs to be customized to get this to display?


  • Which version of osTicket are you running?
    Have you tried clearing your cache? ALT+F5?
    Which built in form did you associate the field and list with? [Contact Information, Ticket Details, Company Information]

    I've added a couple lists and a field to the Ticket Details builtin form and it displays the data fine for me.

  • OSTicket v1.8.0.2
    Apache 2.2.15
    PHP 5.3.3 
    MySQL 5.1.61
    Clearing cache - still not displaying. 
    I have associated both the field and list with the Contact Information form.
    It definitely displays in the user forms.  It is only in the staff end that I can't view it.
  • Update: They are displaying in the SCP - but only when I click on the use's name on the ticket.  I want this info to display in the first section of the ticket display - underneath the "Source" heading - adding on another table row in the table.  Basically, I don't want to have to click to see these new fields.  Is there a way to do this?  I expect that I will have to edit the PHP- but I can't locate the source code...
  • Try moving the data to the built in: Ticket Details
  • Tried entering it into Ticket Details, and it puts it underneath the ticket description/info.  We really would rather have it appear in the first table on the ticket (class ticket_info).  I have found the page which allows me to put in new table rows on this page ( but I can't figure out how to link the custom field and list to display its content in this section.  When I copy code that does similar and modify to custom settings, I get "Fatal error: Call to undefined method Ticket::getLocation()...  pointing me directly to the code I just entered.  Do these custom fields need to be entered anywhere else, or do I need php changes to any other files to be able to pull the entered/selected data from the custom field/list?  So far I haven't been able to determine if I am on the right track on this or not...
  • Adding to contact detail logically extends the contacts detailed information. This information is displayed when you look at the contact information.

    You could change this, but it will take some doing.  Also when/if you upgrade it will break the display.  You would need to go in and edit the /include/staff/ I imagine that you would edit it around line 151 to 162.  It should look something like:

                        <th width="100">Client:</th>
                        <td><a href="#tickets/<?php echo $ticket->getId(); ?>/user"
                                $.userLookup('ajax.php/tickets/<?php echo $ticket->getId(); ?>/user',
                                        function (user) {
                                            $('select#emailreply option[value=1]').text(' <''>');
                                return false;
                                "><i class="icon-user"></i> <span id="user-<?php echo $ticket->getOwnerId(); ?>-name"

Sign In or Register to comment.