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

customize required fields in new ticket from

How I can customize the fields required?
I need to remove some fields in the form of registered users (staff members)

I know how to remove them from the website, but I do not know how disable

Comments

  • To make field not requried you need to

    1. back up the /include/class.ticket.php file.

    2. Edit /include/class.ticket.php

    A. circa lines 1592 - 1602 inside function update()
    locate the variable you want to make not required and change 'required'=>1 to 0.

    B. circa lines 1854 - 1877 inside fucntion create()
    locate the variable you want to make not required and change 'required'=>1 to 0.

    example:
    $fields['phone']        = array('type'=>'phone',    'required'=>1, 'error'=>'Valid phone # required');


    would become:
    $fields['phone']        = array('type'=>'phone',    'required'=>0, 'error'=>'Valid phone # required');
  • thanks!!! :D
  • Very welcome. :)
  • please i need the solution for osticket 1.9.7

    Thanks!
  • edited April 2015
    I believe that this would be done at Admin panel -> Manage -> Forms -> Organization Information -> Phone change Visibility to optional.
    repeat in Contact Information.

    Oh and please dont zombie posts.

This discussion has been closed.