WHMCS Guru Support Forums

Please take a moment and register in order to view all of our content Thank you

How do I make 'required' fields in WHMCS Support Tickets stand out?

custom stuff.jpg

Here's one that I've found useful over the years. Pretty easy to do. Make those 'required' fields stand out when it comes to ticket submissions. This does require template edits

Step 1:
Open up whmcs/templates/template/supportticketsubmit-customfields.tpl, replace it all with
<div class = "form-group">
               <label class="col-sm-3 control-label" for="customfield{$customfield.id}">Custom Fields</label>
                               <div class="col-sm-6">
                               <p class="help-block">The following custom fields are available. Those marked in <b><font color="red">red</font></b> are required</p>
{foreach key=num item=customfield from=$customfields}
       <div class="form-group">
{if $customfield.required}
               <label class="support-required control-label" for="customfield{$customfield.id}">{$customfield.name}</label>
               <label class="col-sm-3 control-label" for="customfield{$customfield.id}">{$customfield.name}</label>
               <div class="col-sm-6">
                       {if $customfield.description}
                               <p class="help-block">{$customfield.description}</p>
Now, open up templates/template/css/custom.css, and replace it with (or add to it):

.support-required {
width: 25%;
color: red;
float: left;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;

Of course, you want to edit this to taste. this is just an example of how this can be done

Users who are viewing this thread