Skip to main content

Search

Javascript to Find String in URL and Return an Email Address

Answered

Comments

2 comments

  • Christof

    Hi Dan Thale
    As discussed in our session yesterday you can just extend your script like this:

    var a = [[FileRef.Value]];
    if (a.indexOf('DThale') > -1) {
      return "email@address.com";
    }
    if (a.indexOf('AnotherUser') > -1) {
      return "anotheremail@address.com";
    }
    if (a.indexOf('AnotherPartOfFolderName') > -1) {
      return "somebody@address.com";
    }
    return "";
    0
  • Dan Thale

    Thank you Christof!

    0

Please sign in to leave a comment.