Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created March 9, 2011 19:30
Show Gist options
  • Select an option

  • Save skipjac/862802 to your computer and use it in GitHub Desktop.

Select an option

Save skipjac/862802 to your computer and use it in GitHub Desktop.
<script>
Event.observe( document, 'dom:loaded', beg_el = function() {
var textValue = $('ticket_fields_139051').value;
return textValue;
},
beg_nl = function() {
var textValue = $('ticket_fields_114704').value;
return textValue;});
</script>
<div style="text-align: center; padding:5px;">
<p style="font-weight: bold;font-color: #1a1a1a;margin:0 0 10px 7px;text-align:left;">opening</p>
<input type="button" id="beg_nl" value="username" onClick="$('comment_value').value += beg_nl();" />
<input type="button" id="beg_en" value="password" onClick="$('comment_value').value += beg_el();" />
</div>
@skipjac

skipjac commented Mar 9, 2011

Copy link
Copy Markdown
Author

inserting custom field data into a ticket comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment