Has anyone messed around with their code to add the ability to make a selection from a custom drop down list from the sticky bar? It's going to be a required field for closing/resolving a ticket and it would be so much nicer to be able to select the value from the sticky bar, and then closing it from the sticky bar as well rather than editing the ticket to select the value before closing the ticket.Thanks in advanceServer InformationosTicket Version v1.10.1 (9ae093d) —  Up to dateWeb Server Software Microsoft-IIS/7.5MySQL Version 5.7.17PHP Version 5.6.24

Or even add it to either of these 2 locations would be brilliant.blank

AddCustomList.JPG

This can you do in file \include\staff\ticket-view.inc.php.For example after status SELECTion block.Look for this line: <select style="display" name="note_status_id">

I'm working on that, but i still cant do it (required) and in my case, place a value on my database, look at my posthttp://forum.osticket.com/d/discussion//field-below-ticket-status#latestIm consulting the list and placing on my drop down

Ok, if I understand, you have a selection box in ticket-view.inc.php and its work.You have a SQL command too.Only what you need is send the value from selection box to your SQL command. Right?If so, it's easy:1. Make your sure, your code for selection box is between <form id="reply" class="tab_content spellcheck exclusive save"data-lock-object-id="ticket/<?php echo $ticket->getId(); ?>" and </form>. In this case are selected value send with to file \scp\tickets.php (see command action="tickets.php?id=...). Simply: it's only POST method. Give your selection box a name, for example like this:<select name="Diagnostico">.2. Now open the file \scp\tickets.php and search line with "case 'reply':" In my case line 82. Now comes the charm: read POST and add PHP Command INCLUDE  after  $vars = $_POST;. For example like this:$vars = $_POST;$Diagnostico = $_POST; //Read POST "Diagnostico"include '../my_scripts/set_diagnostic.inc.php';Of course, file set_diagnostic.inc.php contains your SQL.That's all.

"If so, it's easy"...lolI know just enough to be dangerous, so easy for you is not so much for me...I do appreciate you commenting though. I will have to see what I can figure out, and hopefully @[deleted] can get his thread figured out as well.Thank you,

Tried, but didnt success, the $Diagnostico var is used on the file set_diagnostic.inc.php?Made the file on the same directory of tickets.php will it be a problem?Thanks!Hopefully The option will be ready on this week :( (i'd been working for 3 weeks).

It's really easy.<select name="XYZ"> give only name to your selection box. If the form with selection box is submitted, is called an action defined with action="tickets.php".In this case Tickets.php can read selected value as follow: $Variable = $_POST;

Made it!!! I was not editing the right tickets.php file :(I was able to send the value to the database, now i need to post it on the ticket details and link it to the database.

Write a Reply...