Unique Highlighting Elements in Form Fields

Hi all
My boss is asking me to build an interactive PDf file for in-office use that has some unique highlighting features. She wants the viewer to select an option on the PDF file, and when they make that selection, a box or rectangle outlines the choice. When the administrator saves the document to archive, and production opens it up to examnine it, the "boxed" selections will give them the options the customer wants.
I've already been to support for this, and have been informed that Acrobat does not have a default script or action that does this, but they suggested that I come to this forum and ask the Acrobat scripting community if there is some Java script out tere that will evoke the effect that I described above, and if so, where can I access it?
Thanx in advance!
Paul

this.syncAnnotScan();
var annots = this.getAnnots({
nPage:0,
nSortBy: ANSB_Author,
bReverse: true
console.show();
console.println("Number of Annotations: " + annots.length);
var msg = "%s in a %s annot said: \"%s\"";
for (var i = 0; i < annots.length; i++)
console.println(util.printf(msg, annots[i].author, annots[i].type, annots[i].contents));
Just as reading the JavaScript API Reference would have given you the above information, you can further read the Annotations class in the JavaScript API Reference to find out other properties of an Annotation object returned from the getAnnot or getAnnots methods.
> The question remains, though: how the heck do we get the name (pointer, handle, whatever) "frame1"?
It even has a "name" property.
Even though it is included with the SDK, so if you have the SDK you have this document, here is a direct link to the JavaScript for Acrobat API Reference. You'll find a lot of information about JavaScript for Acrobat APIs in there.
http://www.adobe.com/devnet/acrobat/pdfs/js_api_reference.pdf

Similar Messages

  • Adobe Form... Is there a way to use a drop down menu to highlight or note other fields...

    I am working on a simple Adobe form.  I am currently trying to figure out if there is a way to use the answers of a drop down menu to either mark, note or highlight 14 other fields.  There are 9 possibilities in the drop down menu, include a blank and NONE.
    For example if the drop down menu is set to 1, then field 9, 10 and 14 are marked, noted or highlighted. 
    Is this possible with a script?
    Thank you in advance for any help! 

    Have you looked at the properties that are available to form fields. I would look at setting the fill color or border color for a form field. Either of these can be done with Acrobat JavaScript.

  • Can I make form fields highlighted by default?

    When the user opens the form, can the form fields be highlighted by default?
    Thanks.

    Normally you;d place the code in a  document-level JavaScript, outside of a function definition. To do  this, select: Advanced > Document Processing > Document  JavaScripts > Add
    - Yes, that's exactly what I did and pasted the code above into it, giving it a name.
    Delete the function skeleton that it provides by default and enter the code.
    - I didn't see any function skeleton, but a blank window.
    But  I want to make sure we're talking about the same thing. What I  suggested will highlight the active fields (e.g., not hidden and/or not  read-only) with a background color, which defaults to light blue. If  you're asking about a field border color, what you may be seeing are the  red borders of the fields that are marked as required, which is a  different matter. Can you clarify which you're asking about?
    - No, I don't see any red borders. Yes, I wanted to highlight the active fields with a background color. In the case of the code above, the color is "red" not blue so I expected to see a red background color. Won't the code above make the background color red? My forms open with a blue highlight by default (can't figure out why) so the only way I can check to see if it's working is to use a different color.

  • How to compare a database field and form field and highlight differences

    Hi there,
    I have been trying to find a coldfusion function that will help, I have tried comparing two strings but the results of -1 1 or 0 aren't very useful.
    I need to compare a database field with a form field and highlight all the differences in the form field in red.
    Thanks
    Katie

    This is a non-trivial process.  Rather than doing a compare, you really are wanting to do a diff.  CF doesn't do this out of the box, but you might want to have a sniff around on Google to see if anyone has implemented anything for CF.
    Some reading:
    http://en.wikipedia.org/wiki/Diff#Algorithm
    Adam

  • Validating and highlighting a form fields.

    Hi all!
    I have a form, with a lot of fields, which must be NOT blank. And they must NOT be highlighted.
    So, on the one hand: i have to make these fields required, for don't let users print the form with blank fields. But if I’ll do it with standard settings, the fields will be highlighted with a red color (default settings of the acrobat reader). Yes, these settings can be changed in Acrobat Reader, but as the form will be used by a lot of users - i can't force them all change their settings.
    On the other hand: If the form fields are set to be optional, then validation scripts don't work on empty fields.
    So, is there any ways to solve this problem?

    Well, then not only red borders disapper, but also the blue highlight of fields background, so, users can't see where to type text. And that is bad(
    So, the only way i can see - is to turn off highlight (app.runtimeHighlight = false;), and also, chance fields fillColor, like that:
    enter: this.fillColor = "255,255,255";
    initialize: this.fillColor = "204,215,255";
    exit: this.fillColor = "204,215,255";
    prePrint: this.fillColor = "255,255,255";
    But this way there will be a lot of "monkeyjob" to change color setting of every field...

  • How to make form field that will highlight text

    I have a calendar with several lines of text in each days box (yoga classes with class name and time). I need to create an interactive pdf which I can send to my teachers so they can highlight their availability to teach. I would like for them to be able to click on class times and have those times become highlighted. They could then save this form and send back to me. Please help... seems like it should be fairly easy but I've messed around for two days trying to make it happen with no luck!!

    The problem is that form fields don't have an opacity setting, so they're
    not very suitable for highlighting text.
    Your options are to use a form field (like a button) with a transparent
    fill color and a colored border, and then have the border become
    transparent when clicked, or back to the color when clicked again, or you
    could use a combination of an annotation and a button field. The button
    will show/hide the annotation when clicked. The latter will look nicer but
    is more complicated to implement.
    On Thu, Jul 3, 2014 at 11:00 PM, jaspertrout1 <[email protected]>

  • How Do I Highlight Any Form Field

    I would like to know how to highlight any element put in a
    form, when it is click on
    Thanks

    Depending on your source, you can do one of two things. If
    you are trying to get the yellow highlight that comes default with
    FF2 & 3, you can just use CSS:
    input:focus {
    background-color: #FFFEEE; // this is a light yellow
    Another alternative is to use javascript on the elements
    onclick event
    onclick="highlight(this)";
    function highlight(element) {
    Spry.Widget.Utils.addClassName(element,
    "highlightClassName");
    There are other alternatives as well, depending on your exact
    needs, but these should get you started at least.

  • Add Form Fields using IAC

    Hello,
    I like to know if anyone lately has successfully added
    Form Fields (AFORMAUTLib.Fields) to a PDF document using IAC
    in Visual Studio 2008 and Acrobat 9.3.4 Prof.
    In this forum it was stated that bug in
    "AcroForm.api/AFormAUT 1.0 Type Library/Interop.AFORMAUTLib.dll"
    has been fixed in release 9.3.2
    I applied updated Acrobat to 9.3.4 and it still blows with error message
    "No document is currently open in the Acrobat Viewer"
    Any help, explanation is sincerely appreciated.
    Thanks.

    Rather than use TORU for form fields why not use the "Find" feature on the Options menu from the Tags panel?
    Find "Unmarked Annotations" then use the Tag Element button on the Find Element dialog.
    Select "Form" for the element ("tag").
    Add something useful to the "Title" field.
    [edit: n.b., this method lets you avoid putting a marquee down that inadvertently encompasses undesired text]
    This won't affect use of AT but gives you something to locate as you look over the structure tree.
    This method puts the <Form> element at the bottom of the structure tree; so, the elements would have to be manually moved to the proper location in the structure.
    Alternatively, place focus on the appropriate parent element for the PDF page content.
    The new <Form> element will be placed there - still may have to adjust it location in the structure tree - just closer to that location.
    As to working within the structure tree when adding elements.
    Yes, best practice that.
    TORU - Read Order provides a gross/macro view via the highlight(s) and element desination.
    Read Order should, in almost all cases, be harmonized to the structure tree's logical hierarchy.
    You may find use of the in-line grouping element <Span> useful.
    Be well...
    Message was edited by: CtDave

  • Add form fields to tags - not working

    I have a fillable form with one simple text form field. I run the "Advanced > Accessibility > Add form fields to tags" but the tags do not change. After I run the command it is grayed out so it looks like it's done. I can save, close and reopen to make that command available again, but it never affects the tags and the accessibility check continues to give the error.
    Anyone have that problem or know how to fix it? I'm using Acrobat Pro 9.3.3
    Thanks!

    Rather than use TORU for form fields why not use the "Find" feature on the Options menu from the Tags panel?
    Find "Unmarked Annotations" then use the Tag Element button on the Find Element dialog.
    Select "Form" for the element ("tag").
    Add something useful to the "Title" field.
    [edit: n.b., this method lets you avoid putting a marquee down that inadvertently encompasses undesired text]
    This won't affect use of AT but gives you something to locate as you look over the structure tree.
    This method puts the <Form> element at the bottom of the structure tree; so, the elements would have to be manually moved to the proper location in the structure.
    Alternatively, place focus on the appropriate parent element for the PDF page content.
    The new <Form> element will be placed there - still may have to adjust it location in the structure tree - just closer to that location.
    As to working within the structure tree when adding elements.
    Yes, best practice that.
    TORU - Read Order provides a gross/macro view via the highlight(s) and element desination.
    Read Order should, in almost all cases, be harmonized to the structure tree's logical hierarchy.
    You may find use of the in-line grouping element <Span> useful.
    Be well...
    Message was edited by: CtDave

  • Setting tab order to form fields contained within a table, Indesign CS6

    I have created a form in ID CS6, and have put all the tabs in order so that people can easily navigate it when filling it in. However, all of the form fields that are contained within tables are not in order, and I can't find any way of putting them in order without changing them in acrobat after I have made the interactive PDF. This means that every time my client makes changes to the form I have to manually put all the fields in order again, which is time consuming. Is anyone able to help?

    This tab order dialogue box is nearly useless if you have a complex form with hundreds of form fields as there is no way to interact with the document when the dialogue is open and clicking on an entry in the list does not highlight the respective field. Furthermore, if you have arrays of radio buttons, or check boxes acting like radio buttons, ie all with the same form field name, there's no way to know which order they should be arranged in since they can't be selected or identified while this dialogue is open!
    That is immensely frustrating to say the least.
    It's quite ridiculous that Adobe hasn't fixed this bug in years and this user interface is shockingly bad.

  • Problem with Buttons/Form Fields in Acrobat PDF when created in InDesign CS4

    So I have been working for quite some time on an interactive form for an internal client at my job. It has two major components, one is the side bar navigation, which I created using buttons in InDesign which link to bookmarks in the document. The second aspect is that I also created "check boxes" accoring to this video: http://www.adobe.com/designcenter/cs4/articles/lrvid4434_ds.html
    I have two major issues:
    1. Whenever I try to convert my boxes to form fields in Acrobat it will not recognize them unless I save out 4 pages at a time (rather than the whole document).
    2. I then have to combine the document and get multiple sets of bookmarks, and some bookamrks are corrupted (not working properly). Even when I try to convert the whole document some of the buttons are corrupted.
    UGH tired of this project, I am really bastardizing the whole thing to get it done, but want to figure out the problem as this is an ongoing document that we will be using over and over again in future years.
    I am attaching the pdf file--this is a pieced together one (saved out 4 pages at a time) (which I did do some fixes to to get buttons to go to proper locations) and the original indesign file (partial file due to size).
    PLEASE OH PLEASE HELP ME!

    Acrobat's Form Wizard is good but not perfect when creating form data from a PDF. I have never encountered Acrobat not able to finish the process of creating all form fields, but have encountered very slugish performance afterwards when there was a lot of forms, buttons, and other elements within the pages. And I would say, from your attached PDF, it is pretty heavy with content. I am going to suggest an idea, but I have not tested this to see if it would work.
    In InDesign, create a layer for your navigation tabs, and a layer for your text with the check boxes. Create two PDFs from ID, one PDF with just your-nav tabs, the second with just your text with check boxes. In Acrobat, perform the Form Wizard on the second PDF and see if this will finish, the idea here is to reduce the cllutter for the Form Wizard to finish. If it does, you can merge the first PDF as a layer with the second to have a completed document. Again, I have not tested this theory.

  • How do you create a form that has user permissions per form field for different user?

    I need to create a form that is used by multi people but each user needs to fill out different fields within the form. I need the first user to make selections from a list and save it to send to another (the selection fields then need to be locked). Then the other user checks one of the selections made by the first user and saves the document to send back to the first user. Not sure if this is possible. I would like the first form field selections not to even show as a highlighted field to the other user (like just be more like a text field). I want the document to be able to be used more than once. The list selections will change and need to be sent to the other user at least once a month or more. Has anyone done this?

    There's no built-in way to do that, but it's probably doable using a custom-made script to hide and/or lock the fields.

  • Weird behavior in form fields

    I have a problem when trying to enter text in a form (on any webpage) or enter text in the Google search bar embedded in the top section of my Firefox browser. This also happens in a form field if I hit the <Enter> key.
    When I start typing sometimes the Firefox "Find bar" opens or I get other strange behavior and am not able to type in the form. Several times when I try to start entering text in a form random text on the webpage is highlighted and the browser freezes up.
    I confirmed that "Search for text when I start typing" is unchecked as is explained here: https://support.mozilla.org/en-US/kb/Quick%20find%20bar%20opens%20when%20typing%20in%20text%20fields?esab=a&as=aaq.
    Any ideas what in the world could be going on and how I can fix this issue?
    System information:
    Firefox 16.0.2
    Windows 7
    Thanks much.

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You can also try to reset Firefox:
    *https://support.mozilla.org/kb/Basic+Troubleshooting

  • How do I create a text box or form field on the top of every page of a pdf in XI Pro for titles?

    I generate pdf content from another program and then in Acrobat XI Pro I want to add titles to each page.
    I'm thinking I can use form fileds and duplicate across all pages but how do I make each form filed unique?
    Or could i add a form field to a background and then apply the background to every page in the pdf?
    thanks.

    This type of thing is probably best done with a script, either by adding a uniquely named field to each page or by spawing a template page that contains just the form field (like your last idea). There's not a built-in method for doing this. If you add a blank page to the beginning of the document, create the field in the location you want, and make the page a template, you can run the following script in the interactive JavaScript console (Ctrl+J):
    // Get a reference to the template
    var t = getTemplate("Field");
    // Spawn the template on each page, automatically renaming the fields
    for (var i = 1; i < numPages; i += 1) {
        t.spawn({nPage: i, bRename: true, bOverlay: true});
    To run the code, select it all in the console and press Ctrl+Enter, or Enter on the numeric keypad.
    To make a page a template in Acrobat 11, make sure you're on the page you want to make a template and select: Tools > Document Processing > Page Templates
    and enter a name. I used a name of "Field" in the example above, but you can use anything.
    To create a blank page, you can use the following script:
    newPage({nPage: 0, nWidth: 8.5 * 72, nHeight: 11 * 72});
    for an 8.5"x11" page. Adjust the numbers to match whatever your page size is. It will be added to the beginning of the document and you can then add the field and make it a template. Once the fields have been added, you can remove the template page.

  • Delete all form fields in one go

    Hi
    I am using Acrobat X Pro.
    While running the accessibility check on my PDF, I got an error that there are many form fields that are not tagged to the structure. When I highlighted the fields, I noticed that all these form fields are redundant and can be safely removed. Is there a way I can remove them in one go for the entire PDF document? I saw that there is page-level deletion option where I need to do a Select All and Delete. But how about entire document level?
    Few of my colleagues have Acrobat XI Pro. If this is not possible in X Pro, please let me know we can do it in XI Pro. I can check that out as well.
    Sreekanth

    Go to Form Edit mode, enter the Fields list, press Ctrl+A, then Delete.

Maybe you are looking for

  • How to delete a file from Appliction Server.

    Hi Gurus, I want to delete a file from application server . can any one tell me the FM/BAPI. Plz Reply me ASAP. Thanks in Advance.

  • Contacts app says "waiting...", wont open

    I dont use my contacts app directly very often, usually from within the mail or messaging app. I just now tried to open the contacts app and noticed it is stuck with "waiting" on both my iphone and iPad. Both running the most recent updates (8.1.3).

  • Need help! nano isn't recognized by windows!

    I hooked my brand new ipod nano up to my computer and it appears to be charging. I have done the 5 Rs one hundred times each. It shows up in the device manager with a yellow question mark and exclamation point. When I plug it in, it makes the little

  • Linked WMV files impossible to view

    Something strange happened. I'm creating some new pages and I linked a wmv file to a text. I took a preview and clicked the link and the wmv file could be viewed by means of Nero Show time. Second tentative the progam says Nero Show Time needs an upd

  • How do I improve movie quality in iWeb

    I have iWeb version 1.1.2 Is there a way for me to post better quality movies? Currently, I use the "Share:iWeb" function in iMovie version 6.0.3. This compresses my movie to 12fps, 320 X 240, with medium stereo sound. I'm looking for quality similar