Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Html bobswift
<iframe width="560" height="315" src="https://www.youtube.com/embed/dis0YirU0SI" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>

...

Call this script from a workflow transition post-function. It will set the approver based on the value of a custom field.

Info

The keyword “fruit” in the script below represents a SIL alias which is the best practice for access custom field data. See Custom Fields Aliases.

Code Block
if(fruit == "Apple") {
    customfield_10700 = "jmuse";
}
else if(fruit == "Orange") {
    customfield_10700 = "efoulkes";
}
else if(fruit == "Peach") {
    customfield_10700 = "jwang";
}