Link a text box to a value of selected list of the menu drop-down

I have a drop drown list 5 names in Adobe Acrobat PDF format. Based on the name of the person, that you select in the menu dropdown I would like the text box automatically fill with the telephone number of this person. For example:

Drop down the list the name of the field ('Name')

Jake

Bob

Maria

Field name of phone numbers ('number') so that the number of simplicity, Jake is 100 and so on.

Jake / / 100

Bob / / 200

Maria / / 300

My code does not work and I am close to understand, do you know what is the problem?

var x = 100;

var y = 200;

var z = 300;

If ((this.getField('Name').) Value = 'Jake')

this.getField('Number').value = x;

var a = this.getField ('Name');

var two = this.getField ('Number');

If (one.value == 'Jake') {two.value = '100'}

If (one.value == "Bob") {two.value = '200'}

If (one.value == 'Maria') {two.value = '300'}

If (one.value == "") {two.value = ""}

Tags: Acrobat

Similar Questions

  • Mobile side.  Using the drop down of your video.  I once put some text on the Mobile page the Menu drops down, but behind the image.  When I remove the text box the menu works correctly.  This also happens with a HTML code placed to Paypal.

    Mobile side.  Using the drop down of your video.  I once put some text on the Mobile page the Menu drops down, but behind the image.  When I remove the text box the menu works correctly.  This also happens with a HTML code placed to Paypal.

    Please check layers panel and put in place the menu item in the list, you can use the layers panel and move up or attempt to move the content.

    If there is still the same, then download a few screenshots of the design view.

    Thank you

    Sanjit

  • My panels are not displayed when I click on it in the menu drop-down windows. The box appears but not the Panel. Can anyone help?

    My panels are not displayed when I click on it in the menu drop-down windows. The box appears but not the Panel. Can anyone help?

    Try to reset your preferences using Cmd (LTRC) - Opt (Alt) - move when restart you the version of AI. Did you once two monitors?

  • How to change the text size in the menu drop down labels?

    How to change the size of text in the label drop-down list box?

    Extension of theme font & size changer.

    https://addons.Mozilla.org/en-us/Firefox/addon/theme-font-size-changer/

  • Show alert window when the selection is made in menu drop-down (or when the text field is filled)

    I'm a JavaScript novice writer and need help a warning window that meets the programming user selection form a menu drop-down.

    If the user selects any option except the default choice (which is just an empty space), I want an alert is displayed.  If the user is moving through this area without changing the default value, nothing should happen.

    I have a script attached to the "blur" event for the dropdown menu, but it appears each time you tab in this area, of course.  I don't know how to tell him to display the alert if and only if the user has changed the selection.

    Similarly, I have another field which is a simple text field.  If the user types anything in this area, I would like another alert window pops up.  The thing from the drop-down list seems a little more difficult, so if anyone can help me get that squared away, I can probably understand how to program the alert text field.

    In fact, it's the same code for both types of fields:

    If (event.target.value! = event.target.defaultValue) app.alert ("your message");

  • If the default value in the menu drop-down Dynamics

    Hello

    I created a menu drop-down simple which can be used to edit an existing record or create a new record.

    When you create a new record, I would like to than the drop down menu to display "Unspecified" by default. Could someone help me with this?

    'Unspecified' option in the drop down should view record ID 11 in my database table called "names".

    Here is what my code looks like this day.

    Db queries:

    < CFQUERY DATASOURCE = "DATA" NAME = "get" >
    SELECT *.
    Names
    by name
    < / CFQUERY >


    < CFQUERY DATASOURCE = 'DATA' NAME = 'quo' >
    SELECT *.
    LEAVE quotes
    WHERE quoteID = #quoteID #.
    < / CFQUERY >

    This part is for the registration of existing database:

    < select name = "frn_ID" >
    < cfoutput query = "get" >
    < option value = "#id #" < cfif id is quo.frn_ID > selected < / cfif > > #name # < / option >
    < / cfoutput >
    < / select >

    Here is where I would like the ID with a default value of 11 to display:

    < cfelse >
    < select name = "frn_ID" >
    < cfoutput query = "get" >
    < option value = "#id #" > #name # < / option >
    < / cfoutput >
    < / select >

    < / cfif >

    Thanks for any help with this!

    Luke

    Step 1 - make certain if/else treatments to create a variable, call the ThisOne, who will be the id of the option of your choice is selected.

    Step 2: use this variable in the selected attribute to a cfselect tag.

  • Auto-fill text box values field based on the selection of the menu drop-down

    Try to fill in address, city, province, zip from text fields based on the selected option in a select form field. The following code works fine in Internet Explorer, but in Chrome or Firefox, after selection, text, the fields are filled with the word "undefined."

    I found a PHP script Jquery here version that would probabably do the trick.
    http://StackOverflow.com/questions/3657127/jQuery-populate-text-input-from-table-based-on-select-Valeur

    Maybe someone has a version of CF. they could share?

    Thanks in advance to anyone who can point me to a solution for this code, or a better way to fulfill my need.

    <!--> destinations with address auto-fill, city, etc.
    < script type = "text/javascript" >
    function selectAddress (list) {}
    take the first element is empty
    If (list.selectedIndex > 0) {}
    var locationID = list.options [list.selectedIndex] .value;
    locationAddress var = list.options [list.selectedIndex] .locationAddress;
    var locationCity = list.options [list.selectedIndex] .locationCity;
    var locationState = list.options [list.selectedIndex] .locationState;
    var locationZip = list.options [list.selectedIndex] .locationZip;
    document.getElementById('locationID').value = locationID;
    document.getElementById('locationAddress').value = locationAddress;
    document.getElementById('locationCity').value = locationCity;
    document.getElementById('locationState').value = locationState;
    document.getElementById('locationZip').value = locationZip;
    }
    }
    < /script >
    < b >
    < td align = 'right' bgcolor = "#FFFFFF" valign = "top" > Destination name < table >
    < td align = "left" bgcolor = "#FFFFFF" valign = "top" >
    < select name = "locationID" onChange = "selectAddress (this)" class = "smallforms" > "
    < option value = "" > SELECT the DESTINATION ››› < / option >
    < cfoutput query = "allLocations" >
    "" < option value = "" #locationName # "locationAddress =" #allLocations.locationAddress # "locationCity =" "#allLocations.locationCity #" locationState = "#allLocations.locationState #" locationZip = "#allLocations.locationZip #" > #locationName # < / option >
    < / cfoutput >
    < / select >

    Others: cfinput name = "destinationNameOther" type = "text" class = "smallforms" size = "75" >
    < br / >
    < input id = "locationID" name = "locationID" type = "hidden" > < br >

    Address: < input class = "smallforms" id = "locationAddress" name = "locationAddress" type = "text" size = "30" >
    City: < input class = "smallforms" id = "locationCity" name = "locationCity" type = "text" size = "20" >
    State: < input class = "smallforms" id = "locationState" name = "locationState" type = "text" size = "2" >
    Postal code: < input class = "smallforms" id = "locationZip" name = "locationZip" type = "text" size = "8" > < br / >
    < br / >
    < table > < /tr >

    In your last code done selectAddress refers to "index" but I'm not declared or assigned. I think that you are missing 'var index = list.selectedIndex;' statement.

  • How to switch to TestStand a parameter value of LabVIEW in the Menu drop-down?

    I'm using LabVIEW with TestStand. Sometimes when I pass a parameter to a LabVIEW module and it's a ring Enum happening as a pretty drop-down menu where I can choose the required value, but sometimes the menu does not appear. How can ensure to pass the values of the ring always menu? I have attached a few photos to show the menu in TS.

    I appreciate your help.

    Thank you.

    H.P.

    Your order must be an enum. Your text ring is no different than a normal digital control. In your case, you cannot just replace the text with an enum ring because an enum requires unique values, and you have several selections with 'Reserved' in the form of text.

  • Fill in the field of text based on the menu drop down.

    Here's the scenario: I have 2 drop-down lists on page 1 (list1, List2). Based on this selection, I want to fill in a text field on page 2 with their values, after clicking on a button to update at the bottom of page 2. I use the button click event, but how can I get the actual values of each drop-down list on the previous page?

    You must give the full path to the objects (i.e. form1. Page1.DDListName.RawValue). look in the view hierarchy to see the structure you want. Conversely, you can place the cursor in the script editor where you want the reference to appear, hold done the key ctrl and move the mouse to the object you wish to reference (it will change into a V). Then click on the mouse and the appropriate for this object reference is displayed in the script editor.

    Paul

  • Meta Refresh does not refresh the menu drop-down select options but don't check the boxes... IE works without error (Max FF issue)

    Drop-down list not update even if the html code was changed using the meta refresh tag. The problem has been resolved by deleting the name of the list in the html code in the part of my page refresh. It's a php script, so I can do but with html directly, I don't see a way to solve the problem for others finding this a problem, FF should not do this.

    Example:

    < select name = "page_header_color" >

                 <option >blue</option>
               <option >green</option>
               <option selected >red</option>
               <option >black</option>
               <option >silver</option>
             </select>
    

    whether refresh properly changed to this:

    < select name = "" >

                 <option >-------</option>
             </select>
    

    the script modifies the page preceding between the discount and the 'real' html that resolves this problem, otherwise FF does not update the drop-down lists at all, but it is updated check boxes and everything.

    You must reload and bypass the cache to reset the choices made through selection and from the drop-down list boxes.

    Otherwise the selection are reloaded from the cache, so a meta reload does not work either (can work if you reset the through an onload event).

  • My drop down bookmark does not offer 'manage bookmarks '. Support find Ican, is how to change the bookmarks. How can I find the link manage if this isn't in the menu drop-down?

    Question
    My drop down bookmark does not offer 'manage bookmarks '. All the support I can find that this is how to change the bookmarks. How can I find the link manage if this isn't in the drop-down list?

    In Firefox 4, "Organize bookmarks" was changed to "Show all bookmarks" to open the library window.

  • Expansion of text following extracts containing the text of the menu drop-down

    With the help of RoboHelp11. I did a search here and have not seen this covered.

    I'm having a problem with exhaust text used for the glossary terms in a working document when preceded by a snippet of code that contains the text to drop down (location 2).

    Situation 1: If a code snippet that contains regular text above the glossary with expansion of text, the terms extend without problem in compiled help.

    Situation 2: If an extract containing the drop-down list text above the glossary with expansion of text, the terms do not expand in compiled help.

    Is this a known issue? Is there a fix for this, I'm missing?

    Thank you.

    I just tried this in RH11.0.4 and in 2015 of RoboHelp. It works in Chrome, but it's broken in IE and FireFox. Please connect has a bug with Adobe: home

  • Text of default list - see the HTML drop-down list as an indicator, no show in the list

    I would like to have the text of the 'selected option', 'COLOR' to be visible as a hint, but did not appear as a choice in the drop-down list.

    Existing code as follows:

    < select name = "color" id = "color" >

    < option selected = "selected" > COLOR < / option >

    < Option > BLACK < / option >

    < Option > COAL < / option >

    < / select >

    Thank you...

    Something like that...

  • Make the text visible/invisible field based on the menu drop-down

    I currently have a form that automatically calculates dates based on the value in particular the "Text10" field with the current script of

    Custom calculate script for the field 'date '.

    (function () {}

    Get the date in the field

    var v = getField("Text10").valueAsString;

    Convert string to date

    var d = util.scand ("mm/dd/yyyy", v);

    Add 30 days

    d.setDate (d.getDate () + 31);

    Fill in this field with the result

    If {(v)

    Event.Value = util.printd ("mm/dd/yyyy", d);

    } else {}

    Event.Value = "";

    }

    })();

    I want to thank this option to hide the field if one selects a particular value in a drop-down list. Allows to call the drop "decline.1" and values are just 'Yes' and «» Yes makes visible, hide it.

    Is this possible? I looked through the forums and can't seem to find a solution. I use Adobe Acrobat X Pro

    Thank you

    Yes, it is possible. Just add the following line, this isn't little matter so long it after the first year and before the last:

    Event.Target.Display = getField("drop1").value = 'no '? Display.Hidden: display.visible;

  • How to organize a table like 'move with the text' and 'around and underneath "? For now, my only option in the menu drop-down is "in line with text.

    Hello. I am trying to format a table, so that when I hit it, it moves to the bottom of the page and the bumps any text underneath down as well (that is if you can see the whole table and all text at any time)

    .

    However, the only options I seem to have are moving with the text > inline with the text. The first part is what I want, but having the means of inline with the text of table than all text below it floats UNDER the table, and you can't read it.

    PIC 1 - My only option when "move with the text" is selected. As you can see all the other features are also grayed out.

    Photo 2 - I want now, select above and below, but when I select something other that in line with the text...

    PIC 3... it jumps to stay on the Page option is not what I want.

    Any ideas?

    You can have a floating table in v4.3 Pages ' 09 that moves before the text typed before it, but this feature has not been added to any release of v5 Pages. Simply set the table in the Wrap Pages ' 09 Inline with the text Inspector, and object causes the film if you wish.

Maybe you are looking for

  • How can I change the settings in the Contacts?

    The list of names to the coast by first name

  • Finite sampling on each trigger

    Hello? I have a problem of error about DAQmxSetReadOffset(). Whenever I put this code, short* DataBuffer = new short[_countof(dbuffer)]; ... DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",fRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,_countof(dbuffe

  • Ati2vag a blue screen appears

    When you run certain programs on XP Professional service pack 3, a blue screen appears saying something being stuck in an infinite loop and the Ati2vag memory dump. This can be corrected and how could I do? Enjoy any viable suggestion! [transferred t

  • Help: stop Windows Firewall-Savior popping

    Hello.I had just dried my brain by Windows Firewall-Savior poppings, I had tried to stop his approach, no way and I had experienced with the uninstall, it simply does not work there.How can I? I haveGod ~ ~ !Help me, please...

  • Swype - how to fix broken?

    Recently, my phone has acted very slowly, so I rebooted the phone, and when I turned it back on my keyboard Swype stopped working.  I can always choose to have Swype as my input method, but the keyboard is different - all letters and their secondary