I added some javascript to the file ticket-edit.inc.php that disables specific fields when a ticket is opened. These fields can be enabled with a button click that sets their value(s) to disabled = false. Here's the problem, in order to do this the javascript needs the ID of the input field. I've tested this and it works perfectly except if I log into osticket using a different user name and a different browser the form input IDs change. Any ideas how to handle this?
anyone know how to pick apart $field->render(); which is located in 'staff/templates/dynamic-form.tmpl.php' ? this is creating the form fields and dynamically changing the IDs of each field.
UPDATE: took 2 days of digging. found this thread and removed the random ID based off user session. I have my install non-public so i’m not worried about spammers (yet).
Than you for Information . It's Work for me