How do i implement this:
when a customer chooses a queue, the values on the Subject & Text fields change to reflect the queue selected?
using otrs 3.3.4 linux
different queues
Moderator: crythias
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: different queues
Navigate to the AgentTicketPhone (or Mail) .dtl and find the refresh line of the queue:
After the Core.AJAX.FOrmUpdate (but before the end of the script tag) add something along these lines:
Then use the templating mechanism at the end of the file to pre-fill values on subject and text, e.g.
Implementation derived from this post (read it, helpful information):
viewtopic.php?f=60&t=8032
Code: Select all
$('#Dest').bind('change', function (Event)
Code: Select all
case "5\|\|Development":
if ($('#Subject').val()) {}else{
$('#Template_Development').submit();
}
break;
default:
break;
}
Code: Select all
<form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" id="Template_Development">
<input type="hidden" name="Action" value="$Env{"Action"}"/>
<input type="hidden" name="Subaction" value="StoreNew"/>
<input type="hidden" name="CustomerUser" value="CustomerLogin"/>
<input type="hidden" name="TypeID" value="7"/>
<input type="hidden" name="ExpandCustomerName" value="2"/>
<input type="hidden" name="Subject" value="Prefilled Subject"/>
<input type="hidden" name="Body" value="Prefilled Text"/>
<input type="hidden" name="ServiceID" value="3"/>
</form>
viewtopic.php?f=60&t=8032
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: different queues
Thanks for you relpy.would this work on the CustomerTicketMessage.dlt file?
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: different queues
Try it and ask a different question.teetones wrote:would this work...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Re: different queues
Crythias
Tried to do this on the CustomerTicketMessage.dtl but couldnt get it to work. Can you assist me please
Tried to do this on the CustomerTicketMessage.dtl but couldnt get it to work. Can you assist me please
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: different queues
Certainly that's a different question.teetones wrote:Can you assist me please
I would assume something of the sort or you wouldn't ask the question. Ask a better one. Like, what did you try? Did you get any error messages? What do you expect to happen? What did happen?teetones wrote:couldnt get it to work
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask