rgazetta Posted March 1, 2018 Share Posted March 1, 2018 Hello, is it possible to hide or lock the department field in spet2? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 1, 2018 Share Posted March 1, 2018 5 hours ago, rgazetta said: Hello, is it possible to hide or lock the department field in step2? to hide, you could pass it as a hidden field in the template... to lock, you'd likely need to use some js code... 0 Quote Link to comment Share on other sites More sharing options...
rgazetta Posted March 1, 2018 Author Share Posted March 1, 2018 Could help? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 2, 2018 Share Posted March 2, 2018 20 hours ago, rgazetta said: Could help? with which one - to hide or to lock ? hiding would be easier btw! 0 Quote Link to comment Share on other sites More sharing options...
rgazetta Posted March 5, 2018 Author Share Posted March 5, 2018 The one that works the best, without causing system crashes and is easier to do. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 6, 2018 Share Posted March 6, 2018 On 3/5/2018 at 11:32, rgazetta said: The one that works the best, without causing system crashes and is easier to do. you could edit the supportticketsubmit-steptwo.tpl template and change... <div class="form-group col-sm-3"> <label for="inputDepartment">{$LANG.supportticketsdepartment}</label> <select name="deptid" id="inputDepartment" class="form-control" onchange="refreshCustomFields(this)"> {foreach from=$departments item=department} <option value="{$department.id}"{if $department.id eq $deptid} selected="selected"{/if}> {$department.name} </option> {/foreach} </select> </div> to... <input type="hidden" name="deptid" value="{$deptid}"> the only problem I can see would be if you were using Support Custom Fields - if you were, then you would really need to keep the department dropdown to show the custom fields for that chosen department to the client... if you aren't using, and do not intend to use them, then this won't matter. 0 Quote Link to comment Share on other sites More sharing options...
rgazetta Posted March 8, 2018 Author Share Posted March 8, 2018 Thanks for the help, but I have custom fields. 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.