Thanks! This worked fine for adding a custom field in 1.6ST

Also, thanks Triple-Clones for pointing me in the right direction on how to add the custom field to the email templates. After looking at it some more I found that rather than adding the replacement as individual lines to each of the templates you can change the replaceTemplateVars function to cover all emails. I answered a question looking for the code here: http://osticket.com/forums/showthread.php?p=19873#post19873(http://osticket.com/forums/showthread.php?p=19873#post19873)

Adding new field didn't work for me

I followed the tutorial but all I get is a white page when I go to my website link.

I'd go through all the steps again and double-check to make sure you didn't have a typo.

anyone have this working with a drop-down? if so please share your files.

I was successful

I was successful in utilizing the company additional field and I created my own drop down and was successful in that as well. I will gladly share my files with anyone who may be interested. I have noticed that the search feature does not include any of the additional fields I will work on that next.

so, i'm going mad, after programming (php noob) for two days.

i've done everything right in open.inc.php and class.ticket.php. (see zip)

added fields in sql and changed ticket forms.

everything is working except one thing.

i want, the extra fields to show in the input box when user enters a new ticket

(like username and email is now.)

i use this;

Company:

<?if ($thisclient && ($company=$thisclient->getCompany())) {

?>

"><?=$company?>

<?}else {?>

">

<?}?>

 * <?=$errors?>

company is (obviusly) one of the fields i've added.

can somebody point me please?

when i use the code above, everything after this code is blank, no error message.

please help me, im lost..

[knxcontrol.zip](https://forum.osticket.com/assets/files/migrated/7/ee45260d4f2ad086c2b642ac4cacd9b.zip)

do you have a site i can look at? if you send me a private message i'll give you the link to my site and you can tell me if that is what you're looking for.

Hi,

Sure the site is www.knxcontrol.NL/support(www.knxcontrol.NL/support)

I've adapted the open.Inc.php to work now, if you want you can look at the attached zip

Tnx!

adding drop down menu or radio button?

Hi,

why nobody can help us regarding adding drop down menu or radio button?

I need this in \include\client\open.inc.php

is it possible nobody can do this!

we already added text field and checkbox and working fine but now I need drop down menu or radio button how to do this?

thank you in advance...

take a look at the image attached, you just want a simple dropdown correct?

blank

adding dropdown menu

Dear contentpig,

Thank you for your reply yes I want simple drop down menu like attached image and if client select anyone from drop down menu the staff can see what client selected.

Best Regards...

hi,

i have added 1 extra field to it and it just working fine,

1 thing i notice.. when user has login in to his account to view his ticket, the templates seems ruin / incomplete when he tries to create a new ticket from here.

Is this normal or should i disable the open new ticket from here ? It shouldnt be this way right ? or anything i missed out on the coding part ?

thanks

edit ticket custom field

Hi everyone.

Using the complete mod on page 14 made a custom field work fully for me.

Thanks Frink09 and jkisner.

I wonder if there is any way to get the "edit ticket" page to be able to edit the custom field also.

I tried adding the field to the file: /html/include/staff/editticket.inc.php

and the field shows up with current content show, but the changes aren't written to the database when I click "update ticket".

It feels as if more files than editticket.inc.php needs to be changed.

editticket.inc.php modifications:

line 11

'company' =>$ticket->getCompany(),

line 54

<tr>

<td align="left" ><b>Company Name:</b></td>

<td>

<input type="text" id="company" name="company" size="25" value="<?=$info?>">

&nbsp;<font class="error"><b>*</b>&nbsp;<?=$errors?></font>

</td>

</tr>

Has anyone gotten this to work ?

Cheers

//Hakan

edit ticket custom field

Just got "edit ticket" working by looking at page 1 of this thread.

Using the modifications from my post above + these below.

/include/class.ticket.php modifications:

line 1085

$fields = array('type'=>'string', 'required'=>1, 'error'=>'Company required');

line 1133

',company='.db_input(Format:($var)).

//Hakan

hi hjtech..

since you got it working fine... when user logs in to check the total tickets opened... can you click on new ticket from there ? do u have any error too ?

thanks

I have the same issue. I can create a new ticket as a user with no problem. But when I am logged into the site, the create ticket page will not load correctly. It stops after the first new field I have created.

The same in the admin, I can't view any of the tickets now.

It seems others are experience this exact same issue but can anyone tell us if you've fixed it and how?

Hi firezz & tonin.

I can create new tickets just fine logged in, in the staff view.

The very first modification I made to our system was to add a new field according to this thread.

But I didnt get it to work until i downloaded the finished files on page 14.

Besides those files the only thing I had to do was add the table in the database.

And my custom field happens to be the same as the example in this thread (company).

Worked at once, no problems at all, and I was very happy :)

After that I have done various changes in some php-files, like removing things that I dont need, and some such changes resulted in no tickets showing up etc etc in staff view, then I had to restore my last working file.

//Hakan

Would it help if I sent you my files? Then you could just edit them how you like.

hi hjtech ..

is the files by jkisner you mentioned ? coz previously i downloaded another set of files from one of the users here (*cant rmb which page) and just added the table in db ...

anyway .. i am downloading and will try on this files shortly... :)

thanks

Custom field text disappears on error with Captcha control

My custom fields that has been added disappears when the Captcha control is entered incorrectly but not with the other errors when Captcha is disabled