I would like to preset the default value of a dropdown dyn field (myDorpdownDynField) with a different option, based on the selection of the queue in Customer Ticket create form.
I have done some customization to CustomerTicketMessage.tt file on Dest change (based on viewtopic.php?f=60&t=24116) using lines like:
Code: Select all
document.getElementById('DynamicField_myDorpdownDynField').selectedIndex = 2;
Code: Select all
document.getElementById('DynamicField_myDorpdownDynField').selectedIndex = 4;
Code: Select all
document.getElementById('DynamicField_myDorpdownDynField').selectedIndex = -1;
...with no result.
On the other hand, the preset of free text fields perfectly works:
Code: Select all
document.getElementById('DynamicField_myTextDynField').value = 'preset value';
May you help me?
Thank you