Using a hierarchy of field to select checkboxes?

I have a bunch of boxes to tick in a PDF document that are dynamically added to the PDF in his creative process. Each cell is a cell in a table, and I don't know the number of rows or columns that are in the PDF file. What we try to do is to add a header row in the table that allows users to select/deselect all checkboxes in a column at a time. I thought I could use the approach of hierarchy of domain name to select/unselect all the boxes as long as I named the properly but I seem to be missing something.

For example, this table (assume [] indicates where to go a check box):

Title Category 1 Category 2

[check.global.category1][check.global.category2]
Some products[check.category1.cell1][check.category2.cell1]
Another product[check.category1.cell2][check.category2.cell2]

What I want to do is to add a JavaScript call so that when it is clicked on check.global.category1 I might add something like this to the click event:

var field = getField("check.category1");
field.checkThisBox() //or checkThisBox(false);

And that would be to toggle all checkboxes in the column of category 1. However, this doesn't seem to work. Is there another mechanism to do this, or some way I can loop over all the boxes that belong to the same hierarchy? I know that this method works with buttons and fields of text but boxes seem to be different.

I found the answer. To get all the checkboxes use getArray() after calling getField.

http://livedocs.Adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/HTML/w whelp.htm? context = Acrobat9_HTMLHelp & file = JS_API_AcroJS.88.744.html

Tags: Acrobat

Similar Questions

  • Treatment options for form (use the value of a form field to select a shared list or a web redirect page)

    Hello

    I tried something with the processing of the forms which doesn't seem to work. I wonder if the function really works or if I'm doing something wrong.

    Here is an example of what I do: I have a form that I want to use. I add "Web Page redirection" processing step to my form. When I click on the processing step to set up, under "General settings" there is an option that says "Choose how the launch of destination page is selected." In this drop-down menu, there are three options: always redirect to the same landing page, use a drop-down list to select the landing page and the value of a form field allows you to select the destination page. I have a hidden field on the form that contains the URL of the web page to which I would like to redirect. When I select 'Use the value of a form field to select the landing page', I select the hidden field to the field that contains the URL of the web page to which I want to redirect. It's my setup. However, when I submit the form, nothing happens, I do not redirect to the URL contained in the hidden field... This function still works? I'm doing something wrong? I can't seem to get the function "Use a drop-down list to select the destination page" to work either. The same thing happens when I try to use the "Add Contact to shared the list" processing step. I add the name of the list that is shared in the field hidden, but the contact does not appear in the shared list... These functions still work? If yes how do I configure them?

    Thank you!

    Well, I understood the problem of the shared list... You must add the ID of the list shared in the hidden field. I had to use Firebug to see the real ID of the shared list. Once you have the ID, use you it as a static value in the field. If the HTML code of the form will look something like this:

    If you do not use the lookup data ID. You use the ID real asset on the shared list. You must use something like Firebug to find.

    I'm glad everything is working.

  • I used him copy / paste to add several checkboxes on my form, but now in preview mode when I check the first box it automatically checks all the boxes.  How can I stop this from happening?

    I used him copy / paste to add several checkboxes on my form, but now in preview mode when I check the first box it automatically checks all the boxes.  How can I stop this from happening?

    For later use, it happened because your fields have the same field name, and fields with the same name automatically have the same value.

    So all you had to do was so each had a unique name and it would have worked, but using the command create several fields is preferable because it renames the fields for rename you them.

  • PDF forms have problems displaying text and only appears when the field is selected

    Hello

    I created pdf forms to be distributed to the clients of the company. But we have some people complain about the visibility of the text. When they work as a team, the pdf they receive from a third party often appears limes or no text, the text is only visible when the field is selected. I need to find a solution for this, because our company's products are based on this form.

    If there is any information addition that I must add to understand what is happening and how to fix it, I'll be happy to write it.

    In society, we all have mac and forms where innitially created in Adobe acrobat 9 pro, but we now have Adobe acropabt pro XI.

    Users of Mac and Windows systems.

    Thank you

    This is usually caused by the form is filled out and saved by a Mac user who uses the preview application to view the PDF file. More information is here: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html

    It's a good idea to inform your users that Adobe Reader (or Acrobat) should be used to work with Forms.

  • update the text with xml, DDL data fields a selection of an identification number

    Hi guys,.

    It should be simple, but I can't seem to find a straight answer.  In short:

    The XML file contains the ID, name, location (so 3 extreme records in the example xml file)

    Form contains a dynamic drop-down list to allow the selection of ID and text fields to display the names of the partners and the location of this ID.  The setting of the drop-down list works fine, however I need to update the associated name and location if different from the other ID's fields are selected.  I guess I'll need some sort of event on the menu drop down update other fields with the name and location of the selected ID, but I don't know enough to have a stab at him.

    Please, please, please help, Im starting to pull my hair.

    James.

    Sorry, looking at him again I could have given a better description of what is happening.

    Have a look at this sample https://acrobat.com/#d=NO5o6NhPTQgSYu3SVoN7rQ and data to go with her https://acrobat.com/#d=jN * pRT4uGg05VU * sGWvjcA

    The thing I should have said and I guess that's your problem is the the Data property, I used in $data. Data.resolveNode (...) must match the item parent of the element of your event if xml looks like

    1

    name 1

    Location1

    It should be $data.events.resolveNode (...)

    Maybe I should have used "itemGroup var = $data.resolveNode ("events.event.» (()_eventId.value_===_«_«_+_xfa.event.change+_»_») "); "in this case, but I try and do the resolveNode go as low as possible.

    Concerning

    Bruce

  • Select the text in a text field when selected on?

    I would like to change my form so that when you click on a text field (per a user in adobe reader) all the text in the field is selected.  This is the behavior by default when you tab through the form, but I want to do even if the text field is just clicked.

    As part of the same question, I would like to know if there is a script that can be used to create entries in the keyboard?  If there is another way to do it would be better, but it might be useful if I could program the form so that when you click on a text field the keys 'Ctrl' and 'A' are used to highlight and 'Ctrl' and 'c' to copy the text, because it would be the main purpose of the form is copy and paste to a customers Web site.

    The first part of your question can be made by putting the following code in the click event (JavaScript) of a text field:

    xfa.host.setFocus (null);

    xfa.host.setFocus (this);

  • How to show that a text entry field is selected.

    Hello
    How can I show that a text entry field is selected when _focusrect = false; and I use flash lite.
    When the text input field is selected, I want to change is the border color or show a shape... something like that or even the color of the text.

    If anyone is interested, the answer is:

    When the field is developing the text will be empty
    kword.onSetFocus = function(oPrevFocus:Object):Void
    {
    KWord.Text = "";
    }
    When the update go away text will be keyword
    kword.onKillFocus = function(oNewFocus:Object):Void
    {
    KWord.Text = '- key word -';
    }
    :-)

  • I do not understand this statement "It is a good idea to keep track that uses a bunch of Audio channels selected in the arrange window, unless you actively play or record on a software Instrument."

    It's a good idea to keep track that uses a bunch of Audio channels selected in the arrange window, unless you actively play or record on a software Instrument.

    Which no longer applies in Logic Pro X 10.2.3. In old versions of logic, selecting a range with a software instrument automatically would make this instrument in "Live" mode, which means that the instrument has begun to transform any MIDI in sound with a minimum of delay. This direct mode becomes an instrument need CPU power (on a single processor) and peut overload the audio engine. It is a waste of CPU if there is no direct game. Then select an audio track would ensure that No instrument is in direct mode. Now (LPX 10.2.2 or more) in direct mode can be turned on or off on a track, chosen or not - it is the R button on the track header.

  • Use of bluetooth, how to copy selected music from my Macbook 2009 to my new iMac

    Using bluetooth, how can I copy selected songs from iTunes in my old Macbook to my new iMac? (It might help us to let you know that I don't buy music from the iTunes store). Thanks in advance for your advice.

    How old is the MacBook? Support AirDrop?  If this isn't the case, then the simplest method would be to use a flash drive to move audio files selected from the MacBook to the iMac.

  • Mouse not active when using the tools I refine my selection

    I have re-installed CS5 on a new computer Windows 10 PC and apply the updates by using the discussion forum contact.

    I open a file of image psd and make a quick selection on a part.

    I hit edge tool refine and move the mouse over the image.

    The mouse pointer turns into a circle with a line diagonally crossing (apparently, saying that the use of the mouse is not allowed).

    My eyebrows raised as I say to myself 'it's new

    I have reset the tools presets and refining tool options... no luck.

    What can I do to benefit from the features of the mouse while using edge tool I refine my selection?

    Thanks for the update.

    You must uncheck "Show the Original" in the refine edge of window and then you should be able to use it.

  • I can't use the 'sharpness', the field is marked in gray instead of the stronger color when it is possible to use. If someone of you know why and how to fix it?

    I can't use the 'sharpness', the field is marked in gray instead of the stronger color when it is possible to use. If someone of you know why and how to fix it?

    Hi Eva,

    Could you please for the preferences of Photoshop, then tab Perfomance.

    In here please see, if the option "Use Graphics Processor" must be verified.

    These filters are largely dependent on the graphics card.

    Respect,

    Tanuj

  • How to use the hierarchy of position for approval workflow custom?

    Dear all,

    I created a custom workflow that is triggered whenever develops a new provider site.
    Now, I want to add the trust hierarchy in this stream. To do this, I want to use the hierarchy of the Position.

    I didn't find useful resources to do so. Can you help me please?

    Kind regards
    Natasha

    Salvation;

    Please check:
    Adding a custom Workflow process [ID 374930.1]

    Respect of
    HELIOS

  • How can I validate a form if at least one of the three text fields is selected

    Hi all

    My form has many fields but 3 text fields here that I need to have the Viewer to enter text in a text field before hitting the submit button.

    Don't know how to do in this regard.

    Thank you

    Courier says:

    I can't understand how to ensure at least a field is selected by the Viewer on the three text fields, any thoughts?

    Yes, I played a bit with this idea earlier today, but got distracted by other things.

    What follows is based on the following:

    • There is only one form on the page
    • No validation is involved
    • Each of these fields in the group that needs at least a field has "data-req1" (without the quotes) in its opening tag

    For example, if you have a form like this:

    Add the following just before the closing on the page tag:

    If you try to send the form without find out the name or the email field, you will get an alert dialog box and will refuse to submit the form. But if one or the other or both fields have values, the form will appear.

    In other words, it will work with any number of fields that have "data-req1" in the opening tag. So much that one of these fields has value, submits the form.

  • How do I disable a text field or select list when I change record.

    Dear Sir.

    I created the form with the report when I insert the new record, then all ground are able to insert the value in the table.

    Here I want to when I change any folder, then a field as a TEXTFIELD or select list, which I should be disabled in the case of a CHANGE.



    How do I disable a text field or select list when I change record.



    Thank you

    CORINE

    Hello

    Edit the element... There is a Readonly tab... Enter the condition for readonly... for example... Suppose you have a hidden field P1_X for the primary key. To add the new record, this field will be null and for editting p1_x will have the primary key value...

    So you can make the condition as P1_X readonly IS not null...

    Kind regards
    Shijesh

  • function to call when the specific input text fields are selected

    Hello

    I have a number of text on stage entry field. I want to call some function when the specific input text fields are selected. Help, please

    Thank you

    certainTextField.addEventListener (FocusEvent.FOCUS_IN, handleFocus);

    function handleFocus(e:FocusEvent) {}

    trace (e.Target.Name);

    }

Maybe you are looking for