Copy link to clipboard
Copied
I want to create a search field in Acrobat with a hidden URL, when a user adds any text in the search field and submit it should open URL + added text in the browser.
EXAMPLE:
URL: https://www.community.adobe.com/ (invisible mode )
Search field: forums
SUBMIT
The result should be: https://www.community.adobe.com/forums
Awaiting your kind response.
Copy link to clipboard
Copied
You'll need a script for this.
for example:
var cSrchTerm = this.getField("SearchTerm").value;
var cHiddenURL = "http://www.someting.com/";
app.launchURL(cHiddenURL + cSrchTerm);
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Both the issues you've asked about are String handling/manipulation.
i.e. how to put strings together.
The easy answer it so just add ".pptx" onto the end of the result.
app.launchURL(cHiddenURL + cSrchTerm + ".pptx");
But if you need to test for the existence of the postfix first, it gets more complicated
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
You'll need a script for this.
for example:
var cSrchTerm = this.getField("SearchTerm").value;
var cHiddenURL = "http://www.someting.com/";
app.launchURL(cHiddenURL + cSrchTerm);
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Thank you so much for your answer, Thom Parker.
I have one more question regarding the file opening through the server path through acrobat.
EXAMPLE:
ServerPath : \\server\folder (invisible mode )
Search field : File Name.pptx (file format .pptx should be invisble)
SUBMIT
The result should be : \\server\folder\File Name.pptx
Please guide me if any javascript for this, thank you so much once again.
Copy link to clipboard
Copied
Both the issues you've asked about are String handling/manipulation.
i.e. how to put strings together.
The easy answer it so just add ".pptx" onto the end of the result.
app.launchURL(cHiddenURL + cSrchTerm + ".pptx");
But if you need to test for the existence of the postfix first, it gets more complicated
Use the Acrobat JavaScript Reference early and often

