PDA

View Full Version : Customising the Ticket (and removing required fields)


neogeo
04-15-2008, 07:45 AM
Hi,

How would I (of very little PHP knowledge) remove the email and ticket source fields.

Although they may be necessary for other people's applications, I want to use OZTicket to track repairs in and out of our business, and it looks like it would do the job nicely, and is very fast.

I don't need the email side of it, and wish to remove these fields.

Regards,

ME

JayDee
04-20-2008, 07:53 PM
Morning NeoGeo!

I changed this faily easily... Probably not the best approach but it works nicly.

I set the email to a defult value, eg: noreply@mybusiness.com.
and used CSS to hide the Table row. This can be done just as simply with the source field as well i would assume. (I Haven't tested code below with the source field.)

Code below located: include/staff/newticket.inc.php

First the Email field.

<tr style="display:none;">
<td align="left" nowrap width="20%">Email Address:</td>
<td>
<input type="text" id="email" name="email" size="25" value="noreply@mybusiness.com">
&nbsp;<font class="error">&nbsp;<?=$errors['email']?></font>
<? if($cfg->autoRespONNewTicket()) {?>
&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="alertuser" <?=(!$errors || $info['alertuser'])? 'checked': ''?>>Send Alert.
<?}?>
</td>
</tr>

Then the source should be changed to:


<tr style="display:none;">
<td align="left"><b>Ticket Source:</b></td>
<td>
<select name="source">
<option value="phone" <?=($info['source']=='phone')?'selected':''?>>Phone</option>
</select>
&nbsp;<font class="error"><b>*</b>&nbsp;<?=$errors['source']?></font>
</td>
</tr>

neogeo
04-20-2008, 09:11 PM
Thanks for the info.

It was very helpful. :D

Thumbs up for you!