daferub Posted January 11, 2011 Share Posted January 11, 2011 Hello all I have four support departments but only one of these departments must offer the option to upload files. Is there an option to hide the upload field? Please, let me know! Thank you 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 12, 2011 WHMCS Support Manager Share Posted January 12, 2011 You'd want to use something like: FIND: <tr> <td class="fieldarea">{$LANG.supportticketsticketattachments}</td> <td><input type="file" name="attachments[]" size="50" /> <a href="#" id="addfileupload"><img src="images/add.gif" class="absmiddle" border="0" alt="" /> {$LANG.addmore}</a><br /> <div id="fileuploads"></div> ({$LANG.supportticketsallowedextensions}: {$allowedfiletypes})</td> </tr> REPLACE WITH: {if $department eq 'Department_Upload'} <tr> <td class="fieldarea">{$LANG.supportticketsticketattachments}</td> <td><input type="file" name="attachments[]" size="50" /> <a href="#" id="addfileupload"><img src="images/add.gif" class="absmiddle" border="0" alt="" /> {$LANG.addmore}</a><br /> <div id="fileuploads"></div> ({$LANG.supportticketsallowedextensions}: {$allowedfiletypes})</td> </tr> {else} {/if} Replace Department_Upload with the name of your department you want to allow attachments for. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.