I have been looking at the possibility to use a drop-down box for populating a (for instance) PhoneTicket
I see in the AgentTicketPhone.dtl (and http://www.youtube.com/watch?v=1B8mZ9Ku ... ideo_title & http://blog.otrs.org/2010/11/02/otrs-3- ... templates/) that there is example code to create templates for this
However, the example shows this pressing a button, wheras I would like to use a dropdown, and let that populate the ticket fields
How would I go about changing thie below code (found in AgentTicketPhone.dtl) which works when pressing a button, to work with a drop-down instead?
Code: Select all
# example template for customizations, see hidden form at the end of the file
<label>$Text{"Templates"}:</label>
<div class="Field">
<button type="button" onclick="$('#Template1').submit()" value="$Text{"Example Template"}">$Text{"Example Template"}</button>
</div>
<div class="Clear"></div>
# example template form for customizations
<form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" id="Template1">
<input type="hidden" name="Action" value="$Env{"Action"}"/>
<input type="hidden" name="Subaction" value="StoreNew"/>
<input type="hidden" name="FormID" value="$QData{"FormID"}"/>
<input type="hidden" name="ExpandCustomerName" value="2"/>
<input type="hidden" name="Subject" value="Example Subject"/>
<input type="hidden" name="Body" value="Name:
Product:
Comment:"/>
</form>