Skip to content

Instantly share code, notes, and snippets.

@DeskWOW
Created March 12, 2015 21:08
Show Gist options
  • Save DeskWOW/6a00d3d2d6215f2cf27d to your computer and use it in GitHub Desktop.
Save DeskWOW/6a00d3d2d6215f2cf27d to your computer and use it in GitHub Desktop.
Set brand custom field within a widget via label GET param
<div class="brand-div" style="display: none;">{{ticket_custom_brand}}</div>
<script>
$(function() {
$(".brand-div select").val("{{ticket.labels_new}}");
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment