Jump to content

GSBjay

Registered Users - Approved
  • Posts

    6
  • Joined

Converted

  • Location
    New York City

Converted

  • Occupation
    Prepress / Web2Print

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    7.2P1k

Converted

  • OS
    Windows XP SP3, Mac OS 10.7.4

Converted

  • Acrobat Version
    Acrobat X (10)

GSBjay's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter Rare

Recent Badges

10

Reputation

  1. Dan, your JavaScript is working great with keeping the names together but my client think it would look best if the text can break after second name. This will make the 3rd line look better filled with more words since this is a short note. See example 2. Can you please adjust the script again? Example 1: John Doe, Head of Coca Cola Production North Region, is pleased to announce John Smith and Larry Jackson, have joined Pepsi Cola. Example 2: John Doe, Head of Coca Cola Production North Region, is pleased to announce John Smith and Larry Jackson, have joined Pepsi Cola. I did not make any adjustment to my profile but it appears my signature is showing up today. Cheers!
  2. Inputting the code into JavaScript Globals eliminated the error. The script is functioning now but is there a way to break the text after the second name? This will keep the names reading together without breaking up. Below is an example of how it looks with the script on. With the third name in red text, the first and last name is separated because there is not enough room to fit. If I can make a permanent break after the second name, this should solve it. John Doe, Head of Coca Cola Production North Region, is pleased to announce John Smith, Larry Jackson, Louis McDonald and Todd Butler have joined the corporation. Thanks for the reminder, I've updated the list of software I am using on my profile and my signature.
  3. Thanks Dan, I tried your script and it generated an error. It reads "names,line2: TypeError: names.filter is not a function" This is what I plugged in, they are the actual field names I used. var names = [Field("RM1Name"), Field("RM2Name"), Field("RM3Name"), Field("RM4Name")]; return names.filter(Boolean).join(", ").replace(/^(.*)(, )(.*?)$/, "$1, and $3");
  4. Hi I'm not familiar with javascripts but I've edited a few pre-written scripts from the FusionPro rules library. Currently I'm working on an announcement card that involves four names. The text always have two names but can possibly extend to four names. Between each name will have a comma or the word "and" depending on how many names. I am not sure how to write the rule or what function to use. Below are examples of what I am trying to do. Any help would be appreciated. Example 1: John Doe, Head of Private Banking USA, is pleased to announce <Name1> and <Name2> have joined Bank of America. Example 2: John Doe, Head of Private Banking USA, is pleased to announce <Name1>, <Name2> and <Name3> have joined Bank of America. Example 3: John Doe, Head of Private Banking USA, is pleased to announce <Name1>, <Name2>, <Name3> and <Name4> have joined Bank of America.
×
×
  • Create New...