2 Replies Latest reply on Jul 1, 2013 7:50 AM by m.moll2

    Need script for a replace of linked value


      Here is the scenario, I'm creating a cover letter for quotes that has two instances of the customer's company name. The first instance is in the address at the top of the letter and the second is in the last line of a paragraph. My problem is that I want to link the fields but add a period to the second one, but in cases in which the company name ends with a period (EX: "Monsters, Inc.") I don't need the period. My thought is to keep a format script that adds the period, but add an if(ends.with".") statement in the aforementioned situation. I'm kinda new at js so I could really use the help sorting this out.


      Field name is "Company Name"