Nicole, can you please explain the result you're attempting to achieve?
Note that you can't get a service until you select a customer.
You can't get an SLA until you choose a Service
Let's say you want to make a change based upon change dest/queue:
Code: Select all
<label class="Mandatory" for="Dest"><span class="Marker">*</span> $Text{"To queue"}:</label>
<div class="Field">
$Data{"ToStrg"}
<div id="DestError" class="TooltipErrorMessage" ><p>$Text{"This field is required."}</p></div>
<div id="DestServerError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
function nonetext() {
document.compose.Subject.value = ""; //clear the subject
CKEDITOR.instances.RichText.setData( '' ); // clear the body
$('#DynamicField_dummy').parent().addClass( 'Hidden' ); // Hide anything related to the "dummy" DynamicField
$('#DynamicField_dummy').removeClass( 'Mandatory' ); //don't make the hidden field mandatory
}
$('#Dest').bind('change', function (Event) {
Core.AJAX.FormUpdate($('#NewPhoneTicket'), 'AJAXUpdate', 'Dest', ['TypeID', 'NewUserID', 'NewResponsibleID', 'NextStateID', 'PriorityID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', $Data{"DynamicFieldNamesStrg"}, 'To', 'Cc', 'Bcc']);
switch (document.getElementById('Dest').value) {
case "4\|\|Misc": // need to slash escape the pipes
nonetext();
$('#DynamicField_dummy').parent().removeClass( 'Hidden' ); //unhide
$('#DynamicField_dummy').addClass( 'Mandatory' ); // make it mandatory
CKEDITOR.instances.RichText.setData( '<p>This is Line1</p><p>This is Line2</p>' );
break;
default:
nonetext();
}
});
//]]></script>
<!--dtl:js_on_document_complete-->
(gathered more from Page 2)
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