I'm trying to find a JavaScript that will detect/remove/replace special characters such as "\" in LiveCycle Designer. I tried a few ideas using indexOf(), but it that doesn't seem to work. Is there anything that will work?
thanks.
I'm trying to find a JavaScript that will detect/remove/replace special characters such as "\" in LiveCycle Designer. I tried a few ideas using indexOf(), but it that doesn't seem to work. Is there anything that will work?
thanks.
String replacement can be done with the standard string.replace() function. You can look this function up in any Core JavaScript reference.
However, the code:
var nPos = MyString.indexOf("\\");
should easily find the "\" character.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script