Can I define a field that summarizes a group of checkboxes?


I have a few groups (Group 1, group 2, etc.), the boxes where any number of boxes (Item1, Item2, Item3, etc.) can be controlled.  Let me summarize all of the selections of each group in a summary field.  For example: If the Group1 items 1, 6 and verified 17, I want the summary field for 1 group to say "Item1; Item6; Item17.  Is this possible?  If so, the code would be must be included in each box properties or the summary field only, or both?

I use Adobe Acrobat Pro XI on Windows 7 Professional.

Thanking you in advance for any help on this.

A lot of how you created and coded the boxes will determine how the code should work.

I can create checkboxes with very specific domain names or use a generic name one number fields. I could do a checkbox named "Gropup1" and then use the "create multiple copies" and create a series of check boxes named "Group1.0", "Group1.1", "Group1.2", etc.. Then, I put the value of export for each field. This type of domain name is known as the hierarchical naming. I can now use the getField method to get the name at the top, 'Group 1', to get this group object. Using the method "getArray()" can I create an array of objects field in the "Group1", using this table I can program a loop to test each field in the Group and push each 'Off' no value in a table. Using the method of 'join()' I can create a list of the values in the active fields. It is even possible to create a function to use high standard name and return a list of values for the fields enabled in this group of fields. Then just call the function with parameter the name at the top and I can fill in the summary field for this group.

An example:

I create a function of level document with the name of 'GroupResult' and the following code:

function GroupResult (cName) {}

var oGroup = this.getField (cName);

var aGroup = oGroup.getArray ();

var aResult = new Array();

for (var i = 0; i)< agroup.length;="" i++)="">

If (aGroup [i] .value! = "Off") aResult.push (aGroup [i] .value);

} / / end of loop for table fields.

return the list of items selected;

Return aResult.join (",");

}

I have a group of checkboxes name 'Group1.0', 'Group1.1', 'Group1.2' and 'Group1.3' all with unique when values checked and I have a text called "ResultsGrop1," field

The script for calculating customized for the text field would be:

Event.Value = GroupResult ("Group1");

If I had another group of boxes labeled "Group2. "#" would be JavaScript customized to the text field:

Event.Value = GroupResult ("Group2");

It makes no difference how much check each group boxes script will adjust the number of check boxes in the group.

Tags: Acrobat

Similar Questions

  • I can cause a ticking a box to add 1 to a calculated field?  I have a field that summarizes the numbers entered in several previous fields and must be able to add '1' If a checkbox is enabled as well.

    I can cause a ticking a box to add 1 to a calculated field?  I have a field that summarizes the numbers entered in several previous fields and must be able to add '1' If a checkbox is enabled as well.

    My first sample: If all the checked Checkbox event.value wins 1

    My next sample: If one of the boxes is enabled event.value wins 1

    Event.Value =

    this.getField ("Check Box16") .isBoxChecked (0) |

    this.getField ("Check Box17") .isBoxChecked (0) |

    this.getField ("Check Box18") .isBoxChecked (0) |

    this.getField ("Check Box19") .isBoxChecked (0) |

    this.getField ("Check Box20") .isBoxChecked (0)

  • Can we define a field value of contact with the CRM campaign settings ID campaign?

    Hello

    Can we define a field value of contact with the ID of CRM campaign?

    For example: LAST campaign SFDC ID (field of contact) = CRM campaign (campaign) No.

    The Eloqua campaign canvas has the possibility to update CRM directly with the status of the campaign on things like email send or clicks. IF you set these shares to be among the rules of the answer, then as they happen, they will create/update records of campaign in CRM directly responses. However, this will have an impact on information in Eloqua.

  • How can I define table field residing in a Structure field?

    I use java Adobe XMP toolkit.

    There are a few methods to define elements of structure and table.

    setStructField() and appendArrayItem().

    But ducu said that the members of the Structure may be table or a structure, in addition also array elements can be tables or structures.

    So, how can I define field Array in Structure or table Structure?

    Thank you

    Andrey

    OK, it worked, first time (without exception) I tried to set the value of the CURRENT field.

    The trick is to add table or a struct before setting their values.

    This short example shows how this works:

    Register of XMPSchemaRegistry = XMPMetaFactory.getSchemaRegistry ();

    registry.registerNamespace (extNS, "pdfaExtension");

    registry.registerNamespace (shemaNS, "pdfaSchema");

    registry.registerNamespace (propertyNS, "pdfaProperty");

    XMPMeta m = XMPMetaFactory.create ();

    m.appendArrayItem (extNS, "pdfaExtension:schemas", new PropertyOptions () .setArray (true), "", new PropertyOptions () .setStruct (true));

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:prefix","dc" ');

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:namespaceURI","http://purl.org/dc/elements/1.1/" "");

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:schema","Dublin Core Schema" ");

    m.appendArrayItem (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property", new PropertyOptions () .setArrayOrdered (true), null, new PropertyOptions() ")

    .setStruct (true));

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [1] / pdfaProperty:name","contributor", null ");

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [1] / pdfaProperty:category","external", null ");

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [1] / pdfaProperty:description", ")

    ("Contributors to the resource (other than the authors).", null);

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [1] / pdfaProperty:valueType","bag ProperName", null ");

    m.appendArrayItem (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property", new PropertyOptions () .setArrayOrdered (true), null, new PropertyOptions() ")

    .setStruct (true));

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [2] / pdfaProperty:name","coverage", null ");

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [2] / pdfaProperty:category","external", null ");

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [2] / pdfaProperty:description","the extent or scope of the resource.", null ");

    m.setProperty (extNS, "pdfaExtension:schemas [1] / pdfaSchema:property [2] / pdfaProperty:valueType","Text", null ");

    Code above creates more XMP:

    http://www.w3.org/1999/02/22-rdf-syntax-ns#">

    "xmlns:pdfaExtension ="http://www.aiim.org/pdfa/ns/extension/"

    "xmlns:pdfaSchema ="http://www.aiim.org/pdfa/ns/schema#"

    xmlns:pdfaProperty ="http://www.aiim.org/pdfa/ns/property#" >. "

    DC

    http://purl.org/DC/elements/1.1/

    Dublin Core Schema

    contributor

    external

    Contributors to the resource (other than the authors).

    bag ProperName

    coverage

    external

    The extent or scope of the resource.

    Text

  • Can I make the fields that I created in Acrobat Pro MS justified downtown?

    Hi everyone it should be so simple but really hitting my head. I try to get the fields that I created in Acrobat Pro ms to center then justify text when user types it is the Center not on the left side. I can set the size of text and other but cannot find how to make the above... Thank you

    Yes, it can be done. Go to the properties of the field and under the Options box tick the box 'Allow Rich Text Formatting'.

    Leave the form editing mode, click the field and press Ctrl + E. This will open the properties bar where you can set several formatting options for text, including to set it as "align justified."

  • 'Total' numeric field that summarizes several numeric fields of several pages

    I have a number of fields of digital type I want total upward. I created a numeric field which will be total and need a script that add them up. All the fields that should be added is referred to binding INTVL_n (INTVL_1, INTVL_2, etc.). The fields are also on several pages.

    Thank you!

    You must override the event calculate for the field that you want the value to appear. While the cursor is in the script window, ctrl-click the field you want to summarize. LiveCycle will automatically write the SOM expressions to refer to this area.

  • How can I create a field that allows you to change by a mouse click?

    THE field is blank, click first between "/", then click on entry changes to 'X' and third click changes in an empty field.  Bascially I want a field that allows to use to scroll with the mouse click.

    It is possible. What you describe can be considered a multistate checkbox. The following demo illustrates a number of different implementations: https://acrobat.com/#d=xRrSL3NBQy2hu5qFANPvqA

    You will have to study the code in different areas (box/text for the button combinations) and at the level of the document to understand how it works.

  • can I submit data fields that are updated or modified?

    Hello

    I want the user to change the details of a form (the form is already filled with data).

    can I take only the values of the fields updated in xml format and send it using servlet.

    Scenario: in a form, I have three fields a. name b. MiddleName and c.LastName. The user is told to update its detail. It changes only MiddleName details and click on submit button. So can I submit a form servlet containing only the middle name.

    Concerning

    Sunil

    Sunil,

    I do not believe, you can submit XML. For the presentation of XDP, there is a property xdpContent on the submit method, which seems to confirm the selection of several objects.

    I'm curious to know why you want to do. Client side, she introduced a lot of script in the form to determine the fields that have been changed and then to dynamically build the presentation. Server side, you need a single servlet for every single update.

    Steve

  • How can you define the image that FB takes when your share your Web page?

    He always takes a piece of something or some text... but nothing that looks really good!

    Thnx

    Hello

    Facebook auto detects the image while sharing the web page. It uses the url of the page, and then sends the thumbnail image.

    However, you can add your custom code to indicate which image to select for facebook, but it would be a customization on the page of your site.

    Some useful links:

    http://rickmanelius.com/article/tell-Facebook-which-image-share

    Ostad http://support.dlvr.it/hc/en-US/Articles/200401854-How-do-I-Control-which-image-photo-is-p-pour-Facebook-

    https://developers.Facebook.com/docs/Opengraph/HOWTOs/maximizing-distribution-media-Conten t.

    https://developers.Facebook.com/docs/plugins/checklist/

    Thank you

    Sanjit

  • I can't change the field to the Working Group in windows server 2003

    I can't chang area Workgroup
    the identification of the computer can no. ' t be changed because the servec of CA is installed on the computer of teas
    I have windows 2003 Server

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for support on Windows Server. Please post your question in the below link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer

  • Can load us a file that contains the joint field delimiter

    Hi guru,.

    Can load us a file that mixed the field delimiter

    EX: -.

    My first 10 lines have as field separator «,»

    from 11 to 20 lines have as field separator «;»

    from 21 to 30 lines have field as separator ' | '.


    123456789
    ABC, def, xyz
    a1d2 | b1cw | xedr23

    Hello

    If you have a special field that allows to identify the differences between these lines, you can use it to create 3 ODI data warehouses.
    Each data store refers to the SAME resource (ie: same file), but you use the option called "REGISTRATION CODE" to differentiate.

    ex: I will add a field 4th on your land, which I will call "block".

    123456789; Block1
    ABC, def, xyz; bloc2
    a1d2 | b1cw | xedr23; bloc3

    I create 3 warehouses of data based on this file.

    First data store: I define ',' as the delimiter
    Second data store: I define ';' as delimiter
    Third-party data store: I define ' | ' as delimiter

    In the properties of the column of the first store of data block, I put 'Block1' value in the 'registration code '.
    In the properties of the column for the second data store block, I put the "bloc2" value in the "registration code".
    In the properties of the column of the third-party data store block, I put the "bloc3" value in the "registration code".

    I think it should work.

  • I did the most recent iOS 10 updated, just heard on the news that Yahoo has been hacked.  I changed my Yahoo email but can't find the field to change on my devices.  It is simply not there, what is happening?

    I did the most recent iOS 10 updated, just heard on the news that Yahoo has been hacked.  I changed my password to Yahoo mail but can't find the field to change the password on my devices.  It is simply not there, what is happening?

    For some reason any change automatically if change you it online. Today, I changed my password through my office and I went to change the mail and she had already changed.

    You can try to delete your account your unit off and add it again.

  • Windows mail. When sending a new email, I want to use the BCC field, that I can not select because it is not on the new Message. __How make CCB to come when I create a new message? This something __Is I can add tools please?

    Windows mail. When sending a new email, I want to use the BCC field, that I can not select because it is not on the new Message.
    How can I get the future BCC when I create a new message?
    Can I add tools please?

    Thanks for the reply Bruce Hagen. I am very grateful.

    Dave.

    In a new message window: view | All the headers. Check it out. Or, simply click on the button to easily add to your contacts list to: To, CC, or BCC.

    Bruce Hagen ~ MS - MVP [Mail]

  • How can I lock the fields after that you filled out a pdf file

    How can I lock the fields after that you filled out a pdf file

    Hello

    Please refer to this topic THAT PDF locking after filled will be a great help.

    Kind regards

    Nicos

  • How can I insert instructions/text in a PDF form text field that can be typed by the end user?

    How can I insert instructions/text into a text form field that can be typed by the end user? As the screenshot attached.

    I already have a PDF (not created by me) I have to edit but cannot work out how to enter into new fields of text instructions, I create. I tried to do in InDesign, but the text gets just covered by the blue shape box when you view the final PDF file.

    Screen Shot 2015-08-07 at 10.53.10.png

    Follow the instructions as default value for the field and then reset the form.

    See also: is there a way to add instructional text to my text field that disappears when you click on? (PDF Forms)

Maybe you are looking for