normal">Hello friends,
mso-fareast-font-family:"Times New Roman";mso-fareast-language">
normal">fixed the problem with {"media","html"}
by reediting the ajax function in the open.inc.php
15.3pt">Just exchange
$('#dynamic-form').load('ajax.php/form/help-topic/'
+ value , data);
with $.ajax('ajax.php/form/help-topic/' + value,{ data:
data, dataType:
'json', success:
function(json) { $('#dynamic-form').empty().append(json.html); $(document.head).append(json.media); }})works like a charm for me!I will add the file as an attachment
15.3pt">Another thing is, that in the multi-dropdown version
the customer would not be able to post a ticket with just the "parent
topic"For Example when you have a topic "A" and
topics "A / B", "A / C" you a forced to use either "A
/ B" or "A / C" but never just use "A"I think is might be clever to give this opportunity to
the user, because sometimes you just don’t know where the problem really comes
from.So I just changedif(sel.attr("disabled") ===
"disabled"){toif(sel.attr("disabled") ===
"disabled" || sel.val() === ""){and it's working as far as i see now.Next thing i want to change is dynamically showing or
hiding of needed or not needed dropdowns.For example when i have a topic with just 2 levels and
one with 3 I don’t want to show the 3rd dropdown when the customer selects the
topic with just 2 levels.i hope all of this was understandable, normally i just
talk English but never write anything ;)
[open.inc.php.zip](https://forum.osticket.com/assets/files/migrated/FileUpload/46/4171ef51991ff146092128f57bbbf1.zip)