I've been reading up on the issue mentioned in my subject, but I haven't been able to find a solution. I'm trying to build a custom subject line with multiple pieces of data, such as Ticket # and custom field values. Here is the code I've been attempting to use:
var TicketSub = $('#request_custom_fields_360035849631');
var TicketID = $('request_ticket.id').val()
$('.form-field.string.optional.request_subject').hide();// Hide subject
$('.form-field.string.required.request_subject').hide(); // Hide subject
$('.form-field.request_description').hide(); // Hide description
$('#request_description').val('test description'); // Autofill description
$('#request_subject').val("[Ticket # " + TicketID + "[ " + TicketSub)}
Upon submission, the text portion of the ticket is correct, but the ticket ID/custom field values aren't populated. Any assistance is much appreciated.
Please sign in to leave a comment.