Count the number of drop-down list items based on the selection

You will need to get an "account" (in the fields of totals at the bottom) of each of the values/items selected in the drop-down "ddClassification". My drop-down fields are labeled ' ddClassification.0, ddClassification.1... etc.

Should a loop be involved? Been looking around for the answers but can't really find anything. The values in the drop-down list 'ddClassification' are 'Choose', 'Major', 'Minor', 'OBS', 'OFI '. If I could just get help on one of the "total" fields (for example perhaps the total large field) first then I could go from there. All THE HELP is APPRECIATED! Thank you!


I have attached a screenshot and here is the link for the form: Dropbox - ASSESSMENT_NOTES.pdf
Screenshot.png

Yes, this requires a loop. Here's the Basic code structure, which you can use for the total key, for example:

var total = 0;
for (var i=0; i<=4; i++) {
    if (this.getField("ddClassification."+i).value==4) {
        total++;
    }
}
event.value = total;

Place this code in the script to custom calculation of 'txtMajor '.

Edit: Name of the field max adjusted from 5 to 4...

Edit #2: Also adjusted the value of "Major" in the value of exports 4...

Tags: Acrobat

Similar Questions

  • Help to the drop-down list items in list making invisible field

    On the attached form, I have a drop-down list "Item". How can I get the items in this list make the text field "embroidery" visible or invisible depending on the element selected?

    My programming skills are very basic, livecycle as I am just getting into this. Any help would be appreciated.

    Tom,

    our email form.

    hope this is what you were after.

  • 2 values can be added to a drop-down list item?

    I probably need to explain what it is I'm doing first. It could even impossible the way I'm doing it. So if there's a better way, please do help. But I try to have items listed in a drop-down list. More precisely the elements that are of different lengths with different numbers. I have been using the value of the elements to do simple calculations to work. But I also want it so that once an item is selected the item to a list of material later in the form printed. I'm sure I can set the value of the element as the item number and I the number displayed next to the item (in another column) later in the order form. But I want to be able to always perform the calculations in the subform where is the original drop-down list. Is it possible to assign 2 values (one for use with calculations) and one for use as an item number? Or is there a better way to do what I'm doing? I know I could just name the list drop-down list item and contain the number of point in the name using addItem. But I don't want to confuse the user with numbers, they did not need to see. Only the person who sells the materials needs to know the number of points, not the user.

    Back again...

    Think - the behavior is expected because the values specified in the binding tab lead the overall binding for the drop down menus.

    So if the first dropdown the text resulting from elements such as the display values AND the second dropdown has numbers of items like display settings - then it will work. As long as the two drop-down lists have the same number of elements and sequence in the specified values is the same.

    This means that you must keep two drop-down lists.

    It may be a good idea to have the second dropdown (numbers) configured to read only so that the user cannot interact with it.

    Good luck

    Niall

  • Pages of dashboard as a drop-down list items

    Hello

    I have more than 6 pages in my dashboard, I want to display as a drop-down list. Before posting here, I looked at all possible sources and link to joe
    Dashboard OBIEE - Pages of dashboard as a drop-down list items

    But after going through this post I force pass through. Can someone guide me or someone that can give me the right solution.

    Any help would be greatly appreciated.

    TIA,
    KK

    Sure no problem,

    concerning

    John
    http://www.obiee101.blogspot.com/

  • Width of drop-down list and the number of drop-down list values

    How to increase / decrease the width of a drop-down list on the screen of your interview? In addition, how you increase the number of menu options drop-down user, some of my options in drop-down list don't show up. This shows only 3 points:...

    For OPM 10.4:

    Increase the number of visible items in a drop-down list

    There are two options:

    1. make a regular drop-down list instead of a list of drop-down list box. Regular drop-down lists always display all items, regardless of the length of the list. To do this, set "enable-search-comboboxes = false" in the appearance.properties file. "

    2. increase in the search results max for the combo box in the file appearance.properties, for example 'search max-results = 20' (or another number as appropriate)

    See article OPM the User Guide for more details: http://docs.oracle.com/html/E54499_01/toc.htm#Interviews%20and%20flows/Customize_Web_Determinations.htm#Change4

    I have a vague memory that the increase in the width of the drop-down lists is a bit more tedious. I'll take a look and post here...

    See you soon,.

    Jasmine

  • on the drop-down list item event listener

    Hello

    I would like to display ToolTips, once the user holds the mouse on an item from a combobox open.

    If you open the drop-down menu of the combo box, you will see a list of items/ofelements. Each of them can be accessed for example viamyCombo.getItemAt (0).

    It seems to me that I don't get an object with property adata and label. But I think it takes more than that, becausewhen you rest your mouse over a subitem, it will be highlighted. ThisMeans that there is a listener of events on this very simple question. Sohow can I do this?

    myCombo.getItemAt(0).addEventListener(MouseEvent.MOUSE_OVER, ShowToolTip); //impossible
    
    function ShowToolTip(evt)
    {
      trace(evt.currentTarget.label);//stub action
    }
    

    Thanks in advance.

    Gilzad

    If you are looking for the component in the help documents, you will find all the events associated with this object.  If your drop-down list is a component ComboBox, there events such as what you seem to want to have, itemRollOver and itemRollOut, as well as an example of the use of their.

  • Why don't point in the drop-down list address not remove when selected and click on remove

    on version 14.1 - to remove an item in the drop-down address, said the point the address line the right click and select delete - this clears the address line but point remains in the drop-down list and does disappear not - why point unclear when you return to fall down to check this

    the system is XP and ff 14.1

    I think that you need for the arrow down to the element, so it is highlighted, and then press DELETE.

    (I meant the keyboard delete key, you can't right click on the drop-down list).

  • Access to a drop-down list item

    Hello

    I have a drop down list in my application. I did it in my QML file. Now, by clicking on a button in the page, I get a pop-up asking for confirmation of the issue, I selected in the drop-down list. How can I get the item I selected in the list and post it? can anyone help pls

    Thank you

    without brackets. This is a property, not a function/method.

  • Removal of long list of drop-down list items quickly (ss4)

    I have LiveCycle Designer ES4. I often have a long list of list items in my items from the drop-down list. I want to know if there is a quick way to remove all the items in the list (field tab). I have one at the time a click and remove one at a time. Is there a faster way?

    You can use my macro to create dummy texts.

    Just to empty the text field in the Flex dialog box and click OK, to remove all the values in a drop-down list.

    LiveCycle blog: Lorem Ipsum Generator Makro / / Lorem Ipsum Generator Macro

  • Select from the drop-down list point based on text box is not empty not

    Hello. I have a javascript code to click a button and it will insert the date in a text box named "Controller_PDF_Creation_Doc_Control_Date" in my form. I also have a drop-down list called 'Release_Approval_Initials '. Everything I'm doing is when there is a date of entry in the text box, I want that the 'Release_Approval_Initials' of the menu drop-down default by selecting the option "TM". The drop-down list is filled dynamically too. How can I do this? Here is the code I have.

    < SCRIPT LANGUAGE = "JavaScript" >

    verify() {} function

    var partNumber = ";

    var ecoNumber = ";

    var pdfDate;

    var queue;

    var queueValue = ";

    var allArray = document.getElementById('listofids').value.split (",");

    var error = false;

    for (var i = 0; i < allArray.length; i ++) {}

    pdfDate = document.getElementById('Controller_PDF_Creation_Doc_Control_Date'+allArray[i]).value;

    <!-document.getElementById ('Controller_PDF_Creation_Doc_Control_Date1') .value =' 19 / 08/11 '; ->

    queue = document.getElementById ('Release_Approval_Initials' + allArray [i]);

    queueValue = tail [queue.selectedIndex] .value;

    If ((pdfDate! = '' & & queueValue == '') |) (pdfDate == '' & & queueValue! = '')) {

    error = true;

    ecoNumber = document.getElementById('ECID'+allArray[i]).value;

    partNumber = document.getElementById('Part_Number'+allArray[i]).value;

    Alert ("You must enter a date of authorization to create PDF or Doc Control files and the queue to release for ECO" + ecoNumber + "part number:" + partNumber);

    }

    }

    {if (Error)}

    Returns false;

    }

    else {}

    Returns true;

    }

    }

    < /script >

    "< cfinput type ="Text"name =" "Controller_PDF_Creation_Doc_Control_Date #ItemID #" id = "Controller_PDF_Creation_Doc_Control_Date #ItemID #" value = "#DateFormat(Controller_PDF_Creation_Doc_Control_Date,"M/D/YY")" # "size ="12"maxlength ="8"validate ="date"required ="no"message ="you must enter a valid date in the format m/d/YY in the creation of PDF files or Doc control Date">"

    < cfinput type = "hidden" name = "today_date" id = "today_date" value = "#DateFormat (now ()," D/M/YY")" # "/ >"

    < input type = "button" value = "today's Date" onclick = "document.getElementById('Controller_PDF_Creation_Doc_Control_Date#ItemID#').valu e = document.getElementById ('today_date') .value" >

    < select name = "" Release_Approval_Initials #ItemID # "id =" Release_Approval_Initials #ItemID #">"

    < option value = "" > < / option >

    < cfloop query = "ShowDataEntryInitials" >

    < option value = "" #Initials # ""

    < cfif initial EQ ReleaseInitials > selected

    < / cfif > > #Initials # < / option >

    < / cfloop >

    < / select >

    Any help would be greatly appreciated. Thank you.

    Andy

    I figured out how to make it work. I just had to add parentheses in the right places to make it work. Here's what I did:

  • Drop-down list Hotspot based on another topic


    I would like to create a Hotspot of drop-down list that automatically displays the content to another HTML file.

    Is this possible?

    This would be similar to a pop-up auto size except that the content of the HTML code fell in the page parent rather than displayed in a pop-up window.

    Thank you

    Amber is on site. To do this use an inline frame.

    See you soon... Rick

  • Drop-down list options, even if not selected

    Hello

    I'm doing a printable form for our workers to complete tasks and others to work.  In the options field, I have a drop down containing a list of options for them to choose from.  My problem is that, regardless of whether if this conduct is used, it will always show the first thing in the field.


    I would like to print only when something in the drop-down list is selected.  Is this possible?

    Something is always selected in a menu drop-down... The default value, which is

    the first condition in the list.

    If you want to do unprintable fields when the default value is

    You must use a script that hides them before the selected document

    is printed and shows their return again later.

    Tuesday, April 28, 2015 06:38, kushlar47760666 [email protected]>

  • Reading JSON file based on the selected drop-down list item

    I have little code shown below.

    I'm trying to read data from a JSON file based on certain criteria, in this case all the suburbs on a territory

    I can do that quite easily in a liquid hard coding the territory, however, I want to use the value of the < select > option

    I understand that this can be achieved with JavaScript, is it possible otherwise?

    < select id = 'territory' >

    < option value = "xx" >--please select--< / option >

    < option value = "CBD" > CBD < / option >

    < option value = "North" > North < / option >

    < option value = "South" > South < / option >

    < / select >

    {model module_json json="/_System/shipping/shipping.json" = "" = "shipping" collection "}

    < select id = "suburbs" >

    < option value = "xx" >--please select--< / option >

    {% for section in shipping.territory %}

    {% If the element.} TERRITORY is '< value on top of select >' %}

    < option value = "{{point." POSTAL CODE}} "> {{point." SUBURBS}} < / option >

    {% endif %}

    {% endfor %}

    < / select >

    Hi Craig,.

    You can skip liquid altogether and use JS to get the values you need for json.

    If you want to use liquid you need to load the last part with AJAX/XHR to enter the selected value.

    1. create a new file suburb.html and ajax request after #territory selected with the option as a parameter:

    URL: suburb.html? = north shipping

    2. the suburb.html file would be:

    {assign = globals.get.shipping-% selectedTerritory %}<- this="" will="" have="">

    {model module_json json="/_System/shipping/shipping.json" = "" = "shipping" collection "}

  • How to make the fields from the drop-down list required to make a selection before you save a PDF file

    I have a PDF form where I entered a JAVA script in some areas by using the option ON BLUR under 'Actions' and it works very well to prevent users to go to another site if they leave the field with the empty JAVA Script in place.

    My question is that I have other form fields that have a drop down menu where they can choose several options. I would also like to make these fields to where they can't move forward on the form unless they choose an option in the list. However, because with the option in the list "choose a ' is a default option entered into the field (field is not empty), script JAVA of BLUR ON option I used in my empty fields does not work to block the user to move beyond the matter without selecting an option. They are able to save the form with all the drop down menus staying to 'pick '.

    I made the field "Required fields" then they are highlighted with the red area around, but is there another tool to force them to choose an option for each in the drop down menus before you save the form, instead of being able to save with leaving the 'choose One' in the field by default?

    The best way to do this without knowing the default value of the field is to compare the value of the field to the default value of the field... You must make sure that your default value is not part of the possible acceptable answer. It works with most of the field types that a user can fill.

    If (event.value! = event.defaultValue) {}

    do something;

    App.Alert ("required field not completed. \nField name: "+ event.target.name, 1, 0);

    }

  • comboBox - browse the drop-down list items?

    I need to subdivide a large list of items in a comboBox in small groups in Flash. Is there anyway to loop through the elements and set the background color of you of each element a value in the dataProvider?

    I can run through the loop using myPoS_combobox.dropdown

    var ddList = myPoS_combobox.dropdown

    for {(var propertyName in ddList)

    trace (ddList [propertyName])

    }

    But I can't seem to get the individual items, much less change their properties.

    Thank you!

    If you want to change the background colors in the part of the list of the combobox component, you will need to use a cellrenderer class: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65b32 - 7fd4.html

Maybe you are looking for

  • Unable to save in a no proxy setting.

    I can't surf the internet using firefox because of the proxy. I need to change it everytime I open the browser to allow me to internet surfing using the browser. I changed it to no proxy in the proxy setting but it will automatically change to "Manua

  • Satellite L300D - turns off suddenly

    Hey A neighbor just bought a L300D, I offered help to get this working. Has started at home is is realized that I had to take a long time then took laptop to my home (adapter worked in a friends house) simply put in place.New programs and updates dow

  • Problems with the installation of the graphics driver

    Hello! I need help with the installation of the graphics driver on Pavilion g7 - 1078sr, win7 - x 86. After installing the driver Intel turbo boost technology (sp55027, downloaded here) in Device Manager, in videoadapters I still see Standart VGA gra

  • My back has cracked it self

    First of all, I dropped my phone once. This makes the damage minor scratches only my corners slightly. Months later a crack appears from nowhere share, this has annoyed the * beep * out of me. I don't know what to do since cracked back and fronts are

  • How to lock my computer?

    Original title: lock the computer Hello Mrs., I want to lock my computer if for five minutes, I do nothing. How can I do?