Can a CheckBox controls a drop down list?

In my form, I have a dropdown list and a check box next to the list.  The checkbox is labeled "N/a", indicating the information available in the drop-down list are not applicable. I would like to than the box N/A to disable or clear the drop-down list, so it cannot be calculated subsequently.  A Radio button can be programmed to turn off the drop-down list?

Hello

I think the problem is that you have lots of instances of objects with the same name. This is indicated by the [0] after the name of the object. This makes it more difficult (not impossible, but more annoying).

Basically, first try to rename the items so that each has a unique name. Then refer to them in the script.

If you keep with multiple objects with the same name, then you will need to explicitly tell Acrobat which object you want the script to deal with. This is called solving the node and might look like this (for example depends on the structure of your form):

xfa.resolveNode("form1.page1.DropDownList1[0]")

This would apply to all objects in your script that have the same name as other objects in the form.

Try to name the objects as you go, so that you don't have to change the script later.

Good luck

Niall

Tags: Adobe LiveCycle

Similar Questions

  • How can I create a menu drop-down list dynamics that controls two separate drop-down lists?

    Hello

    I could use help decipher how to control 2 separate drop-down lists ('b' and 'c') through the value selected in the main drop-down menu (that is, 'a').

    My script worked perfectly to control another menu drop down, however I can't seem to properly control the third zone.

    In my example below, what I'm trying to do is control 'Method - external' and 'Department - external', through my gout primary to the bottom of the list. The external 'method -' drop-down list works fine, it is the third 'Department - external' that I fight with.

    For example, if 'Theft' is chosen in the first drop-down menu, I want 'Method - external' to display the series points and "Department - external" to display a different set of items. If 'Cyber Crime' is selected in the main menu down, then the external 'method' - set items will change and the external "Department -" will indicate N/A.

    With the following script - no matter what happens if I choose 'Flight' or 'Cyber Crime' in the first menu drop down, 'Cyber Crime' n/d game elements are displayed in the external "Department -" drop-down.

    I apologize if this is hard to follow - it is certainly difficult to explain. I hope that my question came through.

    Here's my current script

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    break;

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    break;

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

    Thank you

    You have a few break statements that should not be there. Try this:

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

  • How can I disable the menu drop-down list on the back button?

    I use a laptop and my hands are not too clever. Whenever I click on the 'back' button, I get the drop-down list, which means that I must then back up my hand to the pad (gently!) to move the pointer, and then try again. It may take me several attempts to turn back a site now!

    I searched for hours how activate the drop-down list, nothing is done and even looked through all the settings in: config to try to find a way around it. Seriously impact my ability to use my laptop on the web now, so if someone can you please come up with a way to return to the old back button, with no menu when my finger slow old cannot move pretty fast down the key, I would be very grateful.

    There are two other ways to return to a page.

    • Right click on a box empty page you visit and use the dos command
    • From the keyboard, press {Alt + left arrow}
  • 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

  • I can't access Photoshop tool drop-down list in Bridge.

    I have Photoshop CS 5 and you can use my plug-ins without problems. With the help of Photoshop CC 2015 I am unable to do?

    -What are you talking about?

    ~ Rohit

  • Selections from drop-down list in the text box is not saved when PDF is saved/sent

    I have a drop-down selection list and items can be added from the drop-down list in a textbox as multiple items. (this work all fine)

    When I send the form as a PDF and then all the other field values is saved, except the values entered into the text selected in the dropdownlist control box.

    How can I get these values to be saved in the PDF file so that these values disappear.

    Thank you so much for everything tips to get this working so that when the form is sent by e-mail the selected values go with the form

    .. run only in the file > Properties > tab by default , that the changes of Script preserve is set to Automatic.

    Niall

  • Looking for a customizable drop-down list box

    Hello Web all friends, I will try to find the way to smaller my combobox, and when I do the resize... tool it keeps the font size of the letters... How can I handle this? is there any place where I can download the other customizable drop-down list? or a tutorial on how to do it? Thanks in advance...

    for the comboBox control's default font size is 10, going a little girl would make it difficult on users to see. But if you want to continue to move forward... Give your comboBox an instance name, such as my_cbx. then paste it on the frame (by clicking on the image and then opening the Panel shares) which is located in the drop-down list.

    my_cbx. SetStyle ("fontSize", 8); 8 would be the new size...

  • How to import excel list in the drop-down list in acrobat pro DC

    Anyone know if an excel of 527 points list can be imported in a drop-down list in adobe acrobat DC? I'm on a mac v10.10.

    I would like to convert the Excel worksheet a file delimited by tabs. Edit this file in a text editor, no word, in a list that meets the formatting of the table for the setItems method. Then add the code to use this table to set the elements of the fall to the bottom of the field. If you have something like:

    var MyItems = new Array ("One", "Two", "Three");

    this.getField("Dropdown1").setItems (MyItems);

    You can then cut and paste this in the JavaScript console, highlight text and run the text. Or cut and paste the code into a JavaScript document level.

  • How do complete you 1 text box with multiple drop-down list values

    I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.

    (A similar code on the drop-down list 1 and 2 from the drop-down list)

    Change event - JavaScript

    If (xfa.event.newText == 'No') {}

    Form1.Page1.subform2.Description.RawValue = "no location listed.

    }

    If (xfa.event.newText == "Partial renting") {}

    Form1.Page1.subform2.Description.RawValue = "enumerated part place."

    }

    Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?

    Thanks in advance for your help.

    Resolved:

    Place this script in the root of the subform in the FormReady - JavaScript event.

    oList var = this.getDeltas ();

    for (i = 0; i< olist.length;="" i="">

    {

    var oDelta = oList.item (i);

    oDelta.restore ();

    }

    Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/

  • connect two Drop Down list with the code name.

    Hello guys,.

    I have ' starting my LiveCiycle, I have trouble linking two fields in the drop-down list. How can I connect two fields drop-down list? For example, a user selector, the name of the professional and the other menu drop-down is updated with the code of work based on the choice of the name.

    Thank you.

    Take a look at the attachment. It's a way to achieve this. The result like this...

    Steve

  • How to fill a textfield based on a drop-down list and a checkbox control

    Hi guys,.

    I need help.
    first step: I have a drop down list, if I click in the dropdownlist control 'a' and place it in the digital field a number greater than 99, checkbox must be marked and second step: a textfield1 must be visible.

    the first stage works perfectly, but the second does not.
    This is my code for the second stage of the event: java script of change of

    If ((DropDownList1.rawValue == "a") & & (this.rawValue == 1))
    {
    TextField1.presence = "visible";
    }
    on the other
    TextField1.presence = 'hidden ';


    everyone has no idea why?

    Thank you!!

    Diana

    Hi Diana,

    You are on the right track. deleteItem is zero base; so if you want to remove the second point, it would be deleteItem (1).

    I would recommend a script similar to the output from the drop-down list, so that if the user goes back and changes the value, the same logic would apply. Also when you remove items from a drop-down list by using script, it is useful to addItem() again in the other part of the if statement. In this way, you can restore the list because the shape is changed.

    Also I would wrap the script in the numberField in another State to check for null first.

    Attached example.

    Good luck

    Niall

  • You can control several subforms (6) show/hide drop-down list

    Hi, I'm trying to get a drop-down menu to control the 6 options of subform

    List values

    1 = no value = 1

    2 = 1 value = 2

    3 = 2 = 3 value

    4 = 3 value = 4

    5 = 4 value = 5

    6 = 5 6 = value

    five forms

    codno1, codno2, codno3, codno4 (each a numeric / date)

    and codno5 (a notice of revision)

    I want javascript to the output/change of difficulty? event from the drop-down list

    something like that...

    but I'm not a programmer and not sure how to structure properly - any help/pointers please!

    I can get it to do the premiera with { }

    if (this.rawValue == '2')

    cod1date. Presence = 'visible '.

    }

    {

    if (this.rawValue =='3')

    cod1date. Presence = 'visible' & & cod2date = 'visible ';

    but when I try to control several subforms that it breaks...

    I thought that something like below makes sense...

    If this.rawValue is 6

    codno1. Presence & & codno2.presence & & cono3.presene & & codno4.presence & & codno5.presence = 'visible ';

    otherwise if

    this.rawValue == 5

    codno1. Presence & & codno2.presence & & cono3.presene & & codno4.presence & & 'visible' = & & condno5.presence = 'hidden ';

    otherwise if

    this.rawValue == 5

    codno1. Presence & & codno2.presence & & cono3.presene = 'visible' & & codno4.presence & & condno5.presence = 'hidden ';

    ElseIf... And so on...

    The syntax of your function that is not correct. You missed the quotation marks around the value of test and the break statements.

    var A = this.rawValue;

    Switch (A)
    {
    case "5":

    break;

    case "6":
    cod4date. Presence = "visible";

    break;

    case '4 ':
    cod3date. Presence = "visible";

    break;

    case '3 ':
    cod2date. Presence = "visible";

    break;

    case '2 ':
    cod1date. Presence = "visible";

    break;

    /*

    You can also have default parameters too:

    */

    by default:

    }

  • Strange behavior of drop-down list: can select only 3 albums

    I have a drop-down list populated from the SharedObject object and it works very well (can add and remove or clear all using the graphical interface that I created) but when it is developed, I can only select one of the first 3 points.

    Let's say that when I add to the list, I see these entries:

    Test1

    5_up_top

    diamonds

    Spider

    bigX

    I choose test1, 5_up_top and diamonds, but I can't select spider or bigX.

    Huh?

    var dp:DropDown = new DropDown();
    dp.rowHeight = CONTROL_HEIGHT;
    dp.width = 2* LABEL_WIDTH + LABEL_SPACER;
    dp.height = CONTROL_HEIGHT+ HALF_LABEL_SPACER;
    dp.x = OFFSET + LABEL_SPACER + OFFSET;
    dp.y = 4 * CONTROL_HEIGHT + LABEL_SPACER;
    dp.rowCount=8;
    dp.dataProvider = getSharedData();
    

    and getSharedData():

    private function getSharedData():DataProvider{
        _lso = SharedObject.getLocal("LoadGames");
        var valuePair:Object = _lso.data["puzzles"];
    
        var dp:DataProvider = new DataProvider();
        for each(var obj:Object in valuePair){
            if(obj != null){
                dp.addItem({label:obj["title"], data:obj["game"]});
            }
        }
        return dp;
    }
    

    9.4 Simulator running AIR2.5 on Vista32.

    I searched this forum but don't have not seen anything like that. Any ideas?

    TIA,

    Brian

    Certainly do.  It is also available in the AS3 library.

    package com.lib.playbook.controls
    {
        /*
        MIT License:
    
        Copyright (C) 2011 by John Tegen/O2 Interactive
    
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
    
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software.
    
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
        THE SOFTWARE.
        */
        import flash.events.Event;
        import flash.events.FocusEvent;
    
        import qnx.ui.listClasses.DropDown;
    
        public class DropDown extends qnx.ui.listClasses.DropDown
        {
            public var dataField : String = 'data';
            public var defaultSelection : * = '';
    
            /////////////////////////////////////////////////////////////////////////
        public function DropDown()
        {
            super();
            this.addEventListener(FocusEvent.FOCUS_IN, HasFocus );
        }
    
            ///////////////////////////////////////////////////////////////////////////
        private function HasFocus( event : Event ) : void
        {
            this.parent.setChildIndex( this, this.parent.numChildren-1 );
        }
    
            ////////////////////////////////////////////////////////////////////
        public function set selection( value : * ) : void
        {
                var entry   : Object;
                var counter : int = 0;
                for each( entry in this.dataProvider.data )
                {
                    if( entry[ this.dataField ] == value )
                    {
                        this.selectedIndex = counter;
                        break;
                    }
                    counter++;
                }
        }
    
            //////////////////////////////////////////////////////////////////////
        public function get selection() : *
        {
            return this.selectedItem ? this.selectedItem[ this.dataField ] : this.defaultSelection;
        }
        }
    }
    
  • When we choose the radiobutton control should display the drop-down list of choices...

    Hello

    Can u help me pls how to get the drop-down list option when we choose control radiobutton in the same screen.

    When deselect us it, he must hide the drop on the with on screen no matter what accent...

    Thanks in advance...

    u r Correct.

    Acutally we work on popupscreen with transparency.

    I use the 4.3 sound support for setmargin(4.5 doesn't).

    I went through the doc 4.5 Finally I got the result.

    I need to set the drop down just below the dropdown list how can I without no hardcode... pls let me know...

    now iam using setmargin (encode);

    If you have any advice that can help me in pls reffer me programming skills.

    I wil get u was pushing for the next...

    Thank you for your way of orientation...

  • I think it would be helpful if when you open the drop-down list for a 3D object keyframe controls have the same color as the 3D arrows in the project window.

    3D colors.jpgI think it would be helpful if when you open the drop-down list for a 3D object keyframe controls have the same color as the 3D arrows in the project window.

    You can suggest that here:

    Feature request/Bug Report Form

Maybe you are looking for

  • If I already have firefox open in Linux, how can I open a new URL in a new window.

    I want to be able to click a button and firefox opens a new window to a given URL. Currently, if I already have firefox running, then it opens a new tab, which can be on a different desktop. Having to remove the new tab in a new window and bring it b

  • How to activate the USB Port on Satellite Pro 440 cdt?

    HelloI have the old satellite pro 440 cdt and my problem is the USB Port. How can I activate the USB Port? Thank you

  • iMac runs slowly

    My iMac has turned slowly lately and I don't know if my kids have downloaded some sort of application or software that is the cause of the problem.  I say this because my wife has been doing google continues security alerts that an "App" is trying to

  • How to disable specific columns in a table

    Hello world There are two buttons in my code (SHIFT and general). When I press the SHIFT key, general column should disable & grey outside, but all three move the columns (Shift1, Shift2, Shift3) should be in an editable state. Like the picture below

  • HP dv9500

    I install windows 7 hp dv9500 but when remove the dvd from the laptop... I get a message...  operating system not found. Please, someone knows this problem.