How to get a selection of drop-down list to complete another field with nothing

Hello

I have a drop down menu that fills another field according to what is selected (as shown here where Admin mistakes fills the next field with 6735-10-01).

Capture-1.JPG

However, there are 3 items in the drop-down list that I don't want to fill in the other with (basically, it must be empty during one of these 3 elements are selected, in contrast to how it returns zero in the example below). I don't know what to put in for the values to make it white.

Capture-2.JPG

Please notify.

Kind regards

ZeroZone

I don't know what your code looks like or where it is but you will need to add a conditional statement, such as:

If (DropDown.rawValue == "0" | ") DropDown.rawValue == "1" / * | "" etc, etc, * /)

TextField.rawValue = null;

on the other

TextField.rawValue = DropDown.rawValue;

Kyle

Tags: Adobe LiveCycle

Similar Questions

  • Try to make a drop-down list automatically calculate another field, but it is only caclulating a menu drop-down

    I am currently using Acrobat to create a form to fill out. Basically I want the selection in the drop down from the provinces to calculate the taxes of the SubShip field. I have 3 fields of text labeled GST, HST and PST and the selection must fill each box respectively. However, with the code that I use now, it is calculation only 13% of the SubShip field any province is selected, and it is only showing in the box of HST. Here is my code, and I have no idea where I'm wrong.

    Can someone please?

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Ontario":

    this.getField("HST").value = (this.getField (subtotal) .value +)

    this.getField ("Shipping") .value) * this.getField("0.13").value;

    this.getField("PST").value = '0 ';

    this.getField("GST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Prince Edward Island":

    this.getField ("SubShip") .value = this.getField("HST").value * this.getField("0.14").value;

    this.getField("PST").value = '0 ';

    this.getField("GST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Alberta":

    this.getField ("SubShip") .value = this.getField("GST").value * this.getField("0.05").value;

    this.getField("HST").value = '0 ';

    this.getField("PST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case 'British Columbia':

    this.getField ("SubShip") .value = this.getField("GST").value * this.getField("0.05").value;

    this.getField ("SubShip") .value = this.getField("PST").value * this.getField("0.07").value;

    this.getField("HST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Manitoba":

    this.getField ("SubShip") .value = this.getField("GST").value * this.getField("0.05").value;

    this.getField ("SubShip") .value = this.getField("PST").value * this.getField("0.08").value;

    this.getField("HST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "New Brunswick":

    this.getField ("SubShip") .value = this.getField("HST").value * this.getField("0.13").value;

    this.getField("GST").value = '0 ';

    this.getField("PST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Nova Scotia":

    this.getField ("SubShip") .value = this.getField("HST").value * this.getField("0.15").value;

    this.getField("GST").value = '0 ';

    this.getField("PST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Nunavut":

    this.getField ("SubShip") .value = this.getField("GST").value * this.getField("0.05").value;

    this.getField("HST").value = '0 ';

    this.getField("PST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Quebec":

    this.getField ("SubShip") .value = this.getField("PST").value * this.getField("0.9975").value;

    this.getField ("SubShip") .value = this.getField("GST").value * this.getField("0.05").value;

    this.getField("HST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Saskatchewan":

    this.getField ("SubShip") .value = this.getField("GST").value * this.getField("0.05").value;

    this.getField ("SubShip") .value = this.getField("PST").value * this.getField("0.05").value;

    this.getField("HST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Yukon":

    this.getField ("SubShip") .value = this.getField("GST").value * this.getField("0.05").value;

    this.getField("HST").value = '0 ';

    this.getField("PST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "Newfoundland":

    this.getField ("SubShip") .value = this.getField("HST").value * this.getField("0.13").value;

    this.getField("GST").value = '0 ';

    this.getField("PST").value = '0 ';

    break;

    }

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case "The Northwest Territories":

    this.getField ("SubShip") .value = this.getField("GST").value * this.getField("0.05").value;

    this.getField("HST").value = '0 ';

    this.getField("PST").value = '0 ';

    break;

    }

    Your link does not have access to the folder.

    You error means there is an error in the name of the field used in the script. You must check very carefully the spelling and capitalization of the name of the field.

  • LiveCycle: How to select a drop-down list and fill in a text field.

    I have a PDF on Adobe livecycle 8.0 that if selected will auto fill the field area:

    GoalDropDownList: has points:

    People with disabilities

    Functional

    Impairment

    I would like that when disability is chosen this GoalTextField show:

    Patient will return to the previous level of function.

    When functional is chosen GoalTextField to see the

    Patient able to stand 5 minutes

    When the disability is selected GoalTextField to see the

    Patient has full range of motion

    Any help would be appreciated.

    I'm new so can you include in java script where it must go out, enter, etc..

    Thank you all.

    In fact I don't know how to show a picture of this to illustrate what someone knows how?

    Write the code javascript next to the drop-down list in the change event.

    var

    selectedValue = xfa.event.newText;

    If

    (selectedValue is 'Disability')

    TextField1.rawValue

    = "Patient will return to the previous level of function.";

    on the other

    if(SelectedValue=="Functional")

    TextField1.rawValue

    = 'Patient able to stand for 5 minutes.';

    on the other

    TextField1.rawValue

    = 'Patient has full range of motion. "

    Thank you.

  • How can you get rid of the drop-down list such as videos in my photo folder?

    I accidentally deleted the video file in my photo folder, I thought that he would have pulled down I would be able to copy / paste this back, but he didn't. Instead it copied itself and left a drop annoying low bar in my photo folder, in which he used to let me delete it, or even hide. Help...:)

    Hello

    I guess you are referring to the drop-down list option videos list to include in the library in the photo folder.

    The option is available, even if a video file is not included in the folder.

    You can delete or copy and paste the video file to another folder.

    If you are referring to any other menu drop-down then validate a screen so that we can analyse the question better.

    Please visit the sites below:

    Take a screen capture (print your screen)

    http://Windows.Microsoft.com/en-us/Windows7/take-a-screen-capture-print-your-screen

    How i: post a screen shot on this forum?

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/how-do-i-post-a-screen-shot-on-this-forum/c86de820-C620-401c-A804-9f6337cd3053

  • How to fill a text box after selecting a drop down list?

    I have created a form that has a drop-down list with different types of products. After a person chooses a product in the menu I would fill the text box with a description of the product.  I'm a newbie here, but I thought that was far from using JavaScript to do this. But wasn't sure exactly where to put the code and do I have to put it on the text box or drop-down list. Any help would be appreciated Ive been looking everywhere for a week and can find an answer.

    If (xfa.event.newText == "")
    {TextField1.rawValue =""}

    "On your drop-down list by using Java Script on the * change event.

    If you have three items in your list:

    A

    B

    C

    If (xfa.event.newText == "A")
    {TextField1.rawValue = "You chose the letter A"}

    If (xfa.event.newText == "B")
    {TextField1.rawValue = "You chose the letter B"}

    If (xfa.event.newText == "C")
    {TextField1.rawValue = 'You chose the letter C'}

  • 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

  • First element of the ADF/JSF select a drop-down list is empty

    Hello

    I'm using ADF/JSF and SelectOneItemList. Everything works fine, but the first item in the drop-down list is empty. Therefore, unless the user clicks on the drop-down menu, empty everything he sees is a text box with a drop down arrow. How do I:

    1. Add "Select" to the element highest in the list, so that the box is not empty. For example. If the list has 'empty here', 'Car', 'Train', 'Plane' - how to have the first item indicated as "Select"?

    2 get the first item in the list to display in the empty box. For example. If the list has 'empty here', 'Car', 'Train', 'Plane' - how to have the first item indicated as "car"?

    Thank you

    Use the attribute unselectedLabel of the component
    unselectedLabel = "Select".
    or
    Assistant of VO value for 'No. Selection' point.

  • 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}
  • How to read data from the drop-down list

    Hi all

    I use this to display a drop-down list.

    inputScreen.add (new NumericChoiceField ("number of objects:", iStartAt, iEndAt, iIncrement, iSetTo));

    How to read the data selected by the user? say if my list contains from Monday to Saturday, how will I know what day selected by the user? and how that store in the variable? Thank you.

    You have your data in a table and this stone he is used to populate the ObjectChoiceField. The FieldChanged listener you can obtain what the iteme selected to help index:

    int index = yourObjectChoiceField.getSelectedIndex ();

    and for the use of the object:

    Bean of MyObject = myObjectArray [index]

  • Forms - selection drop-down list box makes other fields appear

    I am building a form in InDesign that I export to PDF format with several fields (text, drop-down list, radio, checkboxes). Some fields are defined to trigger the visibility of other fields and that works very well. What I want to do and what I can barely reach, is to have a selection for a combo box, make 3 other visible fields. I'm just a beginner when it comes to buttons in InDesign and the forms of the suggestions would be appreciated.

    If it is easier to achieve in Acrobat I try too.

    In case someone sees this in the future, I found a site with a solution which works perfectly and it's so EASY!

    How can I make a visible field on a selection in the drop-down list box? (PDF Forms)

  • Automatically populate a drop-down list by using another selection from the drop-down list box

    New java/preparation forms so I apologize in advance.

    I currently have a menu drop-down box 1 (Occupation) with three options: "enter your own description/blank", retired housewife. When someone chooses either retirement or anyone at home, I would another drop box 2 (employer) to assign automatically "n/a. . The employer drop box has only two options: "enter your own/blank", N/A.

    Far, I could for that box to fill but only when the person clicks in the box (as if they were about to enter their own text.) Then only it will fill the drop-down list "employer." I would like it auto fill once the person has chosen retired, Virgin or stay-at-home woman without having to enter in the box (just using the arrow to the size of the drop-down list box).

    I currently have a key shot that resets the employer box when a person chooses the option vacuum/enter your own option. I then a JavaScript (only for the housewife now) that only works if you click the box of. Key combination works I want to than the other options work as well. If the client settles on white, the choice of the employer updates automatically empty without having to click in the box of. Any help (including general advice to make my code cleaner) is very appreciated!

    Current script of typing:

    If {(event.willCommit)

    If (event.value == "") this.resetForm (["use"]); of other SetFieldValues (event.value);

    }

    The current upward, mice running JavaScript :

    var v = this.getField ("Occupation") .value

    If (v is "Housewife")

    1. this.getField("Employer").value = "N/a".

    I think maybe I should use event.willCommit in my formula, but I'm not sure how to include it.

    Thank you!

    I would not use the key sequence or MouseUp actions for this, but the action post.

    Just make sure that you set the field option to validate the selected value immediately (under Properties - Options) and then use this code as the custom validation script:

    var employerField = this.getField("Employer");
    if (event.value=="Homemaker" || event.value=="Retired")
        employerField.value = "N/A";
    else employerField.value = employerField.defaultValue;
    
  • 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;

    }

  • selection in the drop-down list makes the visible field

    I have two drop down fields, select from the first drop down field provides a list of the items contained in the second drop-down list. When an item in the second drop-down list is selected, I want a hidden field to become visible.

    I don't know how to write the script on the second menu drop-down to make the visible area. Here is the script that I have, which does not work:

    If (this.rawValue == 'ACD');

    {

    agentID.presence = 'visible';

    }

    If (this.rawValue is 'Agent');

    {

    agentID.presence = 'hidden';

    }

    Thank you

    M.Dawn

    HI Margaret,.

    Here is the corrected form https://acrobat.com/#d=D3yZytcriTw0pMp4S232Wg.

    You had semi colon after the if statement (which was throw). Also, I've shortened the reference to the agentID object:

    if (this.rawValue == "ACD") {
        agentID.presence = "visible";
    }
    else if (this.rawValue == "Agents") {
        agentID.presence = "hidden";
    }
    

    Good luck

    Niall

  • Selection of drop-down list box does not appear

    I've read several display on this site and others.  I can't find the right solution to get the drop-down list box to work.  I publish for Flash player 10 and AS 2.  The final file will be imported into an Articulate/PPT file.

    I'm simulating a form that my audience must fill.  2 text fields, I use a drop-down list box to select the appropriate entry.  If they leave the screen of the form, I need save their answers, so they need not start from the beginning.  I use global variables.

    My problem occurs when I try to fill the drop-down list using the previously selected public response box.  I tried to use setSelectedIndex.  It works insofar as the choice highlights in the drop-down list box, but the actual selection does not appear in the text box.  What I do pay Combobox.text = selection?

    just assign the selectedIndex property.

  • How to restore the search bar drop-down list and the search engine icon today as it was in version FF 33?

    Some ealier time, I managed to go back to the drop down list via editing about: config and setting browser.search.showOneOffButtons to false.

    But yesterday firefox asked me to improve my search and I agreed. After that, I see ugly new tile instead of the drop-down list.

    How can I go back to find it is old menu drop-down appearance?

    "browser.search.showOneOffButtons" was a temporary pref which lasted from Firefox 34 upward through 42 of Firefox. The underlying code that have supported this preference is gone like Firefox 43.

    https://addons.Mozilla.org/en-us/Firefox/addon/classicthemerestorer/ has an option for old search (experimental) in Options of CTR > UI (1)

Maybe you are looking for

  • display the VI hierarchy window

    Hi all How do I call/display window hierarchy VI programmatically >? Thank you.

  • Need Win7 driver for integrated Webcam HP Pavilion dv6 2120TX

    Hi where can I download the driver for the Webcam HP integrated on my Pavilion dv6 2120TX. I am in Australia, as well as the model may be specific to that country. I am operating Windows 7. Much thanks

  • Includes related .h paths

    Hello I have a project that refers to other projects in the workspace. Is there a way to refer to these projects if I can avoid to think like this: #include '... / Screens/MainMenuScene.h. and I can do it instead? #include "MainMenuScene.h". Thank yo

  • Error: Print damaged head. Contact HP

    So, I got this 5510 all-in-one' for a month and it gives me this message. Printhead Damged. Contact HP. Tried the HP site, try Googling it. No joy. How can I fix it? In addition, it says contact HP. How can I contact them? I can't find the coordinate

  • Problem with MSN for Windows 8.

    I too have windows 8 and msn as my homepage. I like it with the tiles for outlook, etc. But yesterday, he came back to the old version of the msn homepage and I want to know how he swinging back to the new version.