Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Searching attachments script - livecycle


Level 1

Anyone know how to run a script in livecycle that will grab the value entered by a user in, say "TextField1", and run the search against the "attachments" of the document? I'm thinking something like this perhaps, but this is not working and its running the search against the contents of the opened document, not attachment:

var cSearchTxt = this.getField("TextField1").value;

search.matchCase = false;

search.wordMatching = "MatchAnyWord";

search.bookmarks = true;

search.query(cSearchTxt, "ActiveDoc");


0 Replies