Have you ever had difficulty to add predefined text into Text Area on open ticket form in osTicket v1.6 RC5? For example, in order to give an instruction to your customer or client, you insert the predefined text into the Text Area object on open ticket form, but unfortunately, the fact that predefined text will be inserted again when your client press the “Submit” button after not all mandatory fields were filled out correctly, so that text will be appended again and again. So I created the modification to fix this problem, at the same time to answer and give solution to the question on the related topic in osTicket Discussion Forum.
-
Open your \include\client\open.inc.php file, and find this code:
73 74 75 76 77 78
<tr> <th valign="top">Message:</th> <td> <? if($errors['message']) {?> <font class="error"><b> <?=$errors['message']?></b></font><br/><?}?> <textarea name="message" cols="35" rows="8" wrap="soft" style="width:85%"><?=$info['message']?></textarea></td> </tr>then replace with this following code:
73 74 75 76 77 78 79 80 81 82
<tr> <th valign="top">Message:</th> <td> <? if($errors['message']) {?> <font class="error"><b> <?=$errors['message']?></b></font><br/><?}?> <?php if ($info['message']=="") { $info['message'] = "My predefined text. \nPlease fill this out: \nMandatory*: "; } ?> <textarea name="message" cols="35" rows="8" wrap="soft" style="width:85%"><?php echo $info['message']; ?></textarea></td> </tr>
Enjoy the result, everyone!

I discovered your homepage by coincidence.
Very interesting posts and well written.
I will put your site on my blogroll.
@Dan Waldron
Thanks for visitting my blog. Yours also is a nice blog. Love to read your articles. Keep up the good work.