I succeeded in displaying some specific field when a specific queue is selected with the code below :
In my AgentTicketEmail.dtl i inserted that
Code: Select all
switch ($('#Dest').val() ) { //this is where the queue is relevant (Dest = Queue)
case "5\|\|Documentation": // need to slash escape the pipes
document.getElementById('DynamicField_Themes').style.display = 'block';
document.getElementById('LabelDynamicField_Themes').style.display = 'block';
break;
case "6||Documentation::Projet d'arrêté": // need to slash escape the pipes
document.getElementById('DynamicField_Themes').style.display = 'block';
document.getElementById('LabelDynamicField_Themes').style.display = 'block';
break;
default:
document.compose.RichText.value = $('#Dest').val(); //remove this. debug only. shows queue information
document.getElementById('DynamicField_Themes').style.display = 'none';
document.getElementById('LabelDynamicField_Themes').style.display = 'none';
I try to do it with a dynamic date field and it is not so easy... Can you give me some tips?
Best regards