- Edited
Hi there,Just upgraded to 1.8.0.2.Is there a way to have the department available for selection by the user when he or she is submitting a ticket using the web form? Thanks.
Hi there,Just upgraded to 1.8.0.2.Is there a way to have the department available for selection by the user when he or she is submitting a ticket using the web form? Thanks.
Yes. simply assign a department to the help topic.
There is no way to do that at this time in the ui.
I'm a little curious to know why people think exposing departments, to the end user, is necessary. In the early days, osTicket allowed users to select departments and it became a nightmare to route tickets to the "correct" department... hence the introduction of help topics.
@[deleted], I believe it's a throw-back to IVR systems, "Press one for Billing Department, Press two for deep philosophical discussions you won't understand, Press three to be connected to Sales" etc. Maybe some people are therefore predisposed to seek the correct "Department", even though they may not know which one in advance.Perhaps a "Catch-All" help-topic would be useful: "Unsure?" etc. I also, imagine that this isn't the tech-setting-it-up making the demand for a "Department Drop Down" on the ticket page.. I imagine some middling manager has gotten a bee in his bonnet and can't comprehend an alternate use-case scenario. </$0.02>
Yup, that's exactly it.Boss tells me he wants the department on the dropdown list, I do it :-) Users sometimes select the wrong department, but we can live with that -- we just transfer it.Anyway, I accomplished it by editing the php files.Thanks!
just thought id post the code for other usersopen.php $var=$vars=0; //Just Making sure we don't accept crap...only topicId is expected. to $vars=0; //Just Making sure we don't accept crap...only topicId is expected.include\client\open.inc.php <div> <label>Department: <span class="required">(required)</span></label> <select id="deptId" name="deptId"> <option value="" selected="selected">— Select your Department —</option> <?php if($depts=Dept:()) { foreach($depts as $id =>$name) { if ($id != 1) { echo sprintf('<option value="%d" %s>%s</option>', $id, ($info==$id)?'selected="selected"':'', $name); } } } else { ?> <option value="0" >Support Dept</option> <?php } ?> </select> <font class="error">* <?php echo $errors; ?></font> </div>we use department as a location for what region around Australia.
please tell me how you did it...Yup, that's exactly it.
Boss tells me he wants the department on the dropdown list, I do it :-) Users sometimes select the wrong department, but we can live with that -- we just transfer it.
Anyway, I accomplished it by editing the php files.
Thanks!
I used your code but for each department it is showing all the help topics. I want to see only the help topics related to the department.