Searching fields for those with a certain name sequence?
Hi all, I'm very much a javascript novice but am hoping someone can point me in the right direction.
I'm looking for an alternative to auto calculation in my PDFs due to lag issues, and am trying to see if I can have my documents calculate sections/chapters only when a button is pressed. These documents have a lot of fields (some over 1000) and so it would be nice if the code could do a search of fields and add to a points counter when I find all the fields I want to include, rather than making a huge array of field. Think Section Point01, Section Point02, etc. So I want to look for all the instances of "Section01 Point".
I tried one solution I saw that used (.indexOf("Section01 Point") > -1), but nothing happened when I tested the output (trying to find the point of failure is another issue entirely, I'm finding). I'm a bit wary of just searching for standard JS solutions as I know acrobat doesn't use all of the latest ones.
Any suggestions are appreciated. 🙂
