ddenev Posted August 29, 2007 Share Posted August 29, 2007 Hi, I need to apply a class attribute to the custom fields in the New ticket form in order to style them with css. How is it possible ? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
Angler Posted August 29, 2007 Share Posted August 29, 2007 In supportticketsubmit-steptwo.tpl of the template you are using look for {foreach key=num item=customfield from=$customfields} <tr><td class="fieldarea">{$customfield.name}</td><td>{$customfield.input} {$customfield.required}</td></tr> {/foreach} (might be slightly different code depending on your version of WHMCS) and then you can add the style to the table. The above code is from the portal template v3.3.0 and as you can see it already has a style class. 0 Quote Link to comment Share on other sites More sharing options...
ddenev Posted August 29, 2007 Author Share Posted August 29, 2007 Thank you, but I need to apply the class attribute to the <input> element that is generated by the {$customfield.input} tag. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted August 29, 2007 WHMCS CEO Share Posted August 29, 2007 You need to use a string replace function to replace the > with your styling code. Matt 0 Quote Link to comment Share on other sites More sharing options...
ddenev Posted August 30, 2007 Author Share Posted August 30, 2007 That was it! Thank you very much 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.