Server Information
osTicket Version /v1.18
Web Server Software Apache /v2.4.57
MySQL Version /5.7.23-23
PHP Version/ 8.2.10

Hello All,
I'm new to using OSTicket, I'm trying to customize the form of (New ticket), I removed all the fields under (User and Collaborators) and replaced them with (3) fields (Name, Phone, Address) in the file staff/ticket-open.inc.php

Also, I created (3) columns inside the table (osttest_ticket) in the Data Base.

The question is, how to link these (3) fields to these (3) columns??
Which file contains the link to the form in order to find it and edit the code of linking?

I tried to use the form and made a test but getting this error (Missing or invalid data — Correct any errors below and try again)

Please, find attached the codes before and after the edit.

code-after-changing.pdf
138kB
code-before-changing.pdf
101kB

Thank you

  • KevinTheJedi replied to this.
  • sgdev

    You are on your own with this. You cannot remove the built-in fields for Users. They are built-in for a reason. We don’t have any guides on customizing the code so good luck!

    Cheers.

    sgdev

    You are on your own with this. You cannot remove the built-in fields for Users. They are built-in for a reason. We don’t have any guides on customizing the code so good luck!

    Cheers.

    Hello KevinTheJedi
    I no longer need these fields, but need the other features,
    I'm asking just about one thing, where can I find the file .php that contains the link of DB with the old fields of ticket, in order to change the values and let my new fields work fine.

      sgdev

      There are many files you need to update. You can review the code on GitHub to find the needed files.

      Cheers.

      OK, send me the link of GitHub that contains all files.

      OK, I want just to remove the email fields, and should the form work normally after that.
      I tried to remove it from the backend and DB, but the form not working normally, When I click on the (Add user) button, it comes to just loading without any adding.

        sgdev

        Because it’s a built in and required field. Email is the unique identifier for users and agents. OsTicket is an email based system. As I mentioned you are on your own.

        Cheers.

        Write a Reply...