ntozier Got it! Found the clue here, but not the solution:
https://github.com/osTicket/osTicket-1.7/issues/641
@pavel83, add a label to the switch statement in class.ticket.php in the getVar() function like this:
case 'company':
return $this->getCompany();
Then you can use %{ticket.company}
###
The above hacking of the code is NOT what you want to do, or necessary - this was for 1.7 and no longer applies.
Here's what I did:
1. Add a variable name to the custom field in the form (example.com/scp/forms.php)
2. To get it to print in email, simply code it as any other variable, for example %{ticket.custom_variable}
Cheers!