Need help to fill in a text box in a drop-down list.

I think I have most of the code and correct settings, but I need help.

I have a drop down list that is populated with 3 States. When a certain State is selected in the drop-down list, I need a text box to fill with tax information for each State. I list them set up variables that define the drop-down list data and the data that I want to appear in the text box. I also code basic javascript in place - but it is not perfect.

The problems I'm having with the dynamic .pdf file include:

1. where a State is selected in the drop-down list, the user must first click the text box so that the appropriate text appears in the box.

2. when a State is selected in the drop-down list and the user clicks on the text box to display the text of tax info, tax info text does not change as it should if a user selects a different State in the drop-down list.

3. the tax information in the text box will appear for 2 States (what is because the variable list that I put in place for these States has too many characters of text? Is there a way to bypass this limitation?)

Can someone help me change the javascript code and settings that I use to make the text field to fill in correctly? It is the first project of livecycle that I tried and my first experience with javascript.

Here's the file I'm working on:

http://www.filedropper.com/outofstatetaxtemplate2

Just discovered this chapter sample of Peachpit Press which talk about whatever it is you are trying to do.

http://www.Peachpit.com/articles/article.aspx?p=1021020&seqNum=4

They provide even a sample download in order to examine the code. Change the numeric field in a text field, and you're all set.

Tags: Adobe LiveCycle

Similar Questions

  • 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/

  • Need help to parse the xml string to populate the drop-down list

    Here is my: problem

    I have a hidden text field that contains the text of an xml

    <>facilities
    < building >
    < name > Building A < / name >
    < name > building B < / name >
    < name > building C < / name >
    < name > building D < / name >
    < name > building E < / name >
    < name > building F < / name >
    < name > building G < / name >
    < name > building H < / name >
    < / build >
    < / facilities >

    My goal is to read this with JavaScript xml string to populate a drop-down list with values of element (name). Does anyone know how script that?

    Attached is a sample .xdp

    See you soon,.

    Jesse

    Here is an example of change. I put the code click on the button, so you can see it in operation... You can place this code in the event that makes sense for you. I also added another field to show the DOM (this is for debugging purposes and you can remove this field if you want).

    Paul

  • How to display text programmatically in the drop-down list box?

    Is it possible to display text programmatically in a drop-down list box.  I would like to display the word "Select" in the drop-down list box each time my program starts.  As it is now, drop-down list displays the last channel that has been selected the last time that the program is running.

    Thanks in advance.

    In fact, after actually reading your post...

  • JavaScript to fill the text based on the drop-down list field

    Hello

    I'm trying to write a javascript script to fill a "Textfield" based on what I select in 'Dropdownlist control' this has on a relationship between them. I tried to integrate the script on the category of 'Change' and the script was the following, but it didn't work. I would be grateful if someone can help me with the correct procedure.

    Thank you

    Vijay

    Form1. #subform [0]. DropDownList2 [0]: change - (JavaScript, both)

    function populateDescription() {}

    if (document.subform [0].) {DropDownList2 [0] .value == "BIH")}

    document.subform [0]. TextField83 [0] .value = "Burn in and PBI history."

            }

    }

    I solved this problem by using a script to switch.

    Please see my previous thread in this regard and Paul example will provide you with the right script for a script to switch.

    http://forums.Adobe.com/thread/479021

    script on the drop-down list as follows

    Switch (this.rawValue) {}

    case "dropchoice1".

    FieldName1.RawValue = 'choice of text here ';

    FieldName2. RawValue = "choice of text here ';

    break;

    case "dropchoice2".

    FieldName1.RawValue = 'choice of text here ';

    FieldName2. RawValue = "choice of text here ';

    break;

    }

    Good luck.

  • Drop-down list boxes &amp; menu bar drop-down lists don't no projection in 32.0

    Just upgraded to 32.0 Firefox on my laptop under Windows 7 Professional, for some unknown reason, drop-down boxes on different websites and Firefox menu bar lists drop-down would not show. When you click in the drop-down boxes, blue they just (as usual), but the list would not show. Firefox menu bar drop-down list behave the same way.

    I restarted Firefox in safe mode and this problem does not exist. I suspect it's something to do with the "Default 32.0' under 'Appearance' (as it has been disabled in safe mode). There is no 'Disable' button visible to delete this sub mode. Obviously I can not remove this in SafeMode either.

    I hope you can help as no setting change made during the upgrade and it has become unusable (so go to Google Chrome in the meantime).

    Looking forward to your reply soon.

    Peter

    Rubootsoz wrote:

    I have restarted Firefox under the safe mode and this problem doesn't exist.
    

    Then he caused either by one of your modules or hardware acceleration.

    Rubootsoz wrote:

    "Default 32.0" under "Appearance" (as it was disabled under safe mode).
    

    It's the default theme, and it is not actually disabled mode without failure.

  • Fill in numeric fields according to the drop-down list

    Hello

    I am VERY new to Adobe LiveCycle so be gentle. I am trying to generate a purchase order. I made my drop-down menu with all the elements that they can choose to buy. I want the the user can select an item and have the corresponding prices for this item to be brought up in a column of prices, then the user can change the quantity and then the Total price column will calculate the price and quantity.

    Can someone help me with this? I drive myself nuts trying to figure it out on my own.

    Thank you

    Amy

    PS. I don't know how to write the script if it's what I do... Sorry

    PLLEAAASEE HELP

    The simplistic way to do is to assign prices as the values of the drop-down list in the "Binding" tab of the object palette.

    Then, in the case of calculating of the price (using formCalc) simply the name of the drop-down list field.

    When the item is selected, the price will appear in the price field.

    Good luck!

    Stephen

  • Need help to make the field required, based on the drop-down menu ' YES/NO' other please field

    field 'A' - drop down, YES/No.  Field 'B' must be entered if 'A' = 'YES '.  If 'A' = 'NO', then 'B' as a default of 0. If "A" = "-", then "B" is "-".

    Really, I hope someone can help, Ive tried java, etc. action buttons.

    Thank you

    To set the property of the EmployeeID field B use the following that the validation of your menu script drop-down:

    this.getField("B").required = (event.value == "YES");

    As noticed TSN, the required field only comes into play when the record is submitted (and only when it is done using the built-in command to submit, do not use a script).

    However, it is possible to use a script to inform him that the use that the file is not correctly filled in when the file is printed/saved and even to reset the form entirely in this case.

  • FormCalc help - trying to multiply or divide based on the drop-down list

    So I'm a complete noob to this and Livecycle learning.

    I tried to make this formcalc script but its all wrong, I'm sure.  I have a dropdown menu with 3 variables (annual, quarterly, monthly), I need to take the amount in the box "given amount" and based on 3 variables come with the monthly amounts.

    If (giving regularity == 'Each year') then

    Amount given/12

    on the other

    If (giving regularity == "Quarterly") then

    Amount given/3

    on the other

    If (giving regularity == "Monthly") then

    Given amount * 1

    endif

    I'm sure it's very basic, but I would appreciate any advice from you in the pros.

    Capture.PNG

    Hello

    Make sure that you call your objects with the names of right...

    Object names can not have spaces, so when you specify "Given the regularity" or "Given amount", both are bad...

    don't forget to refer to these values to the right objects

    If you are not sure how to call these objects, you can still use the features of LiveCycle with Ctrl + click on the object...

    For example:

    Make sure your cursor is in the Code Editor, while now Ctrl, hover your mouse over the object to, you should see the change in your mouse to an arrow pointing down, then click on the left button of your mouse (still in holding the CTRL key)

    In your editor, you will see the reference to the object that you want to retrieve the value, it's how you call your object

    I hope this will help you!

  • Anyone can help solve this frustrating bug in Adobe Reader 8 drop-down list?

    Has anyone met the bottom of drop in their PDF form that do not work in Adobe Reader 8?

    A simple example is my form (stripped back) here:

    http://www.wikski.com/misc/test.PDF

    I built a form with 22 sections in this document, some 1800 of code lines, and now every drop down has decided to not work in Adobe Reader 8.

    The behavior is when you select a drop down, it immediately turns off itself and you cannot use the item at all.

    I've had this happen and by simply removing the element in LiveCycle ES2 of Designers (which is what I used to create the entire form) and recreate exactly the same thing; seemed to remedy. However, so far I passed the point of being able to recreate each drop of this time, I need to know actually what is the cause of the bug.

    Any help would be greatly appreciated!

    See you soon,.

    I don't know why you need the xfa.layout.relayout (); in your calls in your enter events (at least in the set_focus function).

    Seems to work without it.

    I had more problems with Reader 8.0 than any other version.

    Bruce

  • I need a box multi select drop-down list or list of selection with image or icon faclitliy

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    Thank you

    pauljohny100 wrote:

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    When ask questions user interface-related still State (at least) the full version of APEX, the theme and the version of browser compatibility / required.

    See the plugin jQuery Select2 , for which there is a plug in APEX .

    Pre-plugin when we have implemented requirements like this using a model report, CSS and personal...

  • i MAC mid 2011: error saving a scanned image by choosing Documents with text... the drop-down list of Preset MAC

    When I scan a text document and try to save it as a PDF, I get the error message "could not save scanned image.

    If I use parameters for general use, it records OK.  Any thoughts?

    Hello

    HP Easy Scan provides not less features HP Scan, this is a later version of the software.

    It provides the same functionality, such as capabilities, OCR, Image detection, scanning front panel and other capablities supplied by HP Scan.

    You can also install more HP Scan and test it, the current application will remain on your Mac.

  • List box example - FXML drop-down list

    I'm new to FXML. I'm looking for an example of list dropdown script FXML.

    Use a ChoiceBox:

    
    

    You want normally fill the items from code, so just put a fx:id on your ChoiceBox for attribute, and then open it in your controller. See the FXML guide for more information on this: http://docs.oracle.com/javafx/2.0/api/javafx/fxml/doc-files/introduction_to_fxml.html

    If you really want to set the values in the FXML then it gets a little messier:

    
        
            
                
                
                
            
        
    
    

    Make sure you include imports right at the top:

    
    
    
  • Problems of dynamic drop-down list box

    Hello

    I have a requirement for a list dynamic downdown.

    I use javascript itself to fill the 2 text fields in the drop-down list.  I need the list/menu area drop down to be able to have options to input from the user and the drop-down list. I selected the "user entered - optional" compared to the setting but does not seem to work.

    The drop has used names and if a new employee joined this company and I do not know the end user can enter the name of the employee in the field.

    I have attached a pdf file version.

    Any ideas or help would be great.

    See you soon.

    Hello. All you have to do is check the box "Enable custom text entry". You can find the object box > cell phone

  • transform of text file content in a drop-down list box

    Hi people,

    I have a file text filled with orders. and I would like to transform this text file in a drop-down list box ring, how can I do?

    text file attached.

    Lee

    Is not no matter what extract lines. Which is just dumping the contents of the file directly on the ring. Which can be accomplished by simply doing this:

Maybe you are looking for

  • MacBook pro error message - 3001F

    I had some probelsm with my Macbook Pro for a week or two, it started ok and then everything was frozen - mouse has been active, however I couldn't click on anything that it is - what happens now more regularly but I managed to backup everything. I'm

  • Qosmio X 770/00 X - output HDMI stopped working

    Satellite of Qosmio X 770/00 X - HDMI problem My external monitor works well as office extended for more than a year now, - up to that I turned on my laptop of setting standby extended today. The external monitor does not wake up after I logged in my

  • HP L1906 monitor: HP_L1906 with Windows 10 display does not work

    Under Win7 Pro, I used two monitors, a DELL and HP L1906 (my favorite).  After the Win10 upgrade, the DELL works just fine.  The HP is not displayed. In the settings the LP is detected, but under the name generic and none of the parameters of work, n

  • Problems of Apple TV 2015 - work, Watched &amp; Autoplay

    Hello. Recently I bought the new Apple TV, and in the first 2 hours of use, I have seen a ton of bugs and bad implementations. 1. why videos AutoPlay? Who got this idea? So when I fall asleep my Apple TV through the season and the mark as watched scr

  • DUAL MONITOR HELP!

    System information: HP P6210Y Win 7 NVIDIA GeForce 9100 Above is my information system. I use a HP P6210Y with a GeForce 9100 graphics card. I have two [2] IN2030M of Dell monitors. I bought a VGA splitter and it worked, but now how I wanted it to wo