Adamski Posted May 30, 2007 Share Posted May 30, 2007 Hi, I'm trying to alter the support ticket template (step-two) so that the client can choose the support department from a drop down list I am assuming I need to use {foreach..} but not too sure what else and I can't get it working! Any pointers? Thanks Adam Link to comment Share on other sites More sharing options...
Adamski Posted May 30, 2007 Author Share Posted May 30, 2007 To add this is what I have so far: <tr><td>{$LANG.supportticketsdepartment}:</td><td><select name="deptid">{foreach key=num item=department from=$department.name}<option value="{$department.name}">{/foreach}</select></td></tr> The drop down box is displayed it just isn't populated! Adam Link to comment Share on other sites More sharing options...
skshost Posted May 30, 2007 Share Posted May 30, 2007 I did this a while back: http://www.whmcs.com/forums/viewtopic.php?t=3788 Link to comment Share on other sites More sharing options...
Adamski Posted May 30, 2007 Author Share Posted May 30, 2007 Star - just what I need. One thing though - this shows all departments - i have some set as hidden, how do I stop these bing displayed? Thanks, Adam Link to comment Share on other sites More sharing options...
Adamski Posted May 30, 2007 Author Share Posted May 30, 2007 sorted .. added this to the client_query that skshost used: WHERE hidden != 'on' Adam Link to comment Share on other sites More sharing options...
skshost Posted May 31, 2007 Share Posted May 31, 2007 sorted .. added this to the client_query that skshost used: WHERE hidden != 'on' Adam Thanks! I was just going to post that. Link to comment Share on other sites More sharing options...
Recommended Posts