These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Stripping text from field

toumazos
Registered: Jul 9 2010
Posts: 7

Hi,

Is there an easy way to strip words from a field?

i.e. aField = "This is my name";

aField = aField.Strip("This is my name", "name");

Hence aField = "This is my";

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can use the JavaScript 'indexOf()' method to locate the position of the search string and then with that value, extract the substring with the 'substr()' method to extract the characters before the search word.

George Kaiser