osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go
get it now
osTicket v1.10 Ticket Print
Hi there
Has someone modded or can someone assist me in modding the custom data font size on ticket print?
Check my attached picture, underneath "Jobcard details", i would like to make that font/table smaller
Essentially i would like to make the items on the below code appear smaller:
<!-- Custom Data -->
<?php
foreach (DynamicFormEntry::forTicket($ticket->getId()) as $form) {
// Skip core fields shown earlier in the ticket view
$answers = $form->getAnswers()->exclude(Q::any(array(
'field__flags__hasbit' => DynamicFormField::FLAG_EXT_STORED,
'field__name__in' => array('subject', 'priority')
)));
if (count($answers) == 0)
continue;
?>
<table class="custom-data" cellspacing="0" cellpadding="4" width="100%" border="0">
<tr><td colspan="2" class="headline flush-left"><?php echo $form->getTitle(); ?></th></tr>
<?php foreach($answers as $a) {
if (!($v = $a->display())) continue; ?>
<tr>
<th><?php
echo $a->getField()->get('label');
?>:</th>
<td><?php
echo $v;
?></td>
</tr>
<?php } ?>
</table>
<?php
$idx++;
} ?>
Kind Regards
Noobie
Comments
But, I can see changes only in the "Ticket Detail" field.
How can I reduce the font of the content and notes?
Thanks.
Prior to opening your thread;
Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.
Hi all,
Anyone know how to add custom variable that created in User Information in PDF file? I want to change "Source" by my custom field in pdf file.
@Sam_Parris & @ntozier:
I've already edited ticket-print.tmpl.php but I don't know the variable of the field that I created in Contact Information form, pls check the image for detail.
Thank you.
Hi @Sam_Parris:
This is my database table for the fields that I created