Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created November 6, 2013 19:16
Show Gist options
  • Save skipjac/7342375 to your computer and use it in GitHub Desktop.
Save skipjac/7342375 to your computer and use it in GitHub Desktop.
example of ticket.save function for required fields.
onTicketSave: function(){
if(custom_field_A === 'apple'){
if (custom_field_B === ''){
return "please fill out custom field b"
} else if (custom_field_C = ''){
return "please fill out custom field c"
} else {
return true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment