Value of the drop-down list instead of the text

I want a drop-down list that includes complete definitions for the user to watch but when they choose the item they want only the abbreviation indicating on the form. For example, in my items list is said 'Illinois', but when they select "Illinois" she fills the field with the bind value of 'IT '. Is this possible?

See the attached file... If it helps...

I place a TextField on the top of the drop-down list and setting the rawValue selected the TextField... In the case of exit of the combo I hide list drop-down and display of the textfield object. Similarly, in the event you enter in the text field, I am displaying the drop-down list field and hide the text field.

This way I can show 'IT' If you choose "Illinois" in the menu dropdown.

https://Acrobat.com/#d=7Y0qDg-ld6nWNxw8G-0cNg

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Display the export value of the drop-down list instead of the element

    I'm showing the value to the export of a drop-down list instead of the selected option or the user selects BLACK, but the value of exports of BLK is actually displayed.  I can find many discussions on how to get the value of the exports and display it or use it to trigger another answer in another area and I can usually tweak my existing JavaScripts when I need something new, but I just can't wrap my head around this!

    This is my last attempt (failed)

    var f = this.getField ("eyes");

    If (event.value is 'Black - BLK')

    f.Value = "BLK".

    I use Acrobat PRO DC.

    Any help is appreciated,

    Thank you

    Xavier


    I've been doing this for a long time and have never heard of anyone who wants something like this, so it is interesting. Remove your current script and try the following script Format customized drop eyes:

    Custom drop-down list Format script

    Event.Value = event.target.getItemAt (event.target.currentValueIndices, true);

    This defines what is displayed in the drop-down list in the value of exports of the selected item. Select the 'Value selected to validate immediately' option to the drop-down list for smoother operation.

  • Hello experts, I use Adobe forms in SAP. My question is, is there a any restriction for additem keyword in JavaScript? I mean, even if I use the keyword additem to add the name and value of a drop-down list, it adds up to 10000 files only. Please s

    Hello experts,

    I use Adobe Forms in SAP.

    My question is, is there a any restriction for additem keyword in JavaScript?

    I mean, even if I use the keyword additem to add the name and value of a drop-down list, it adds up to 10000 files only.

    Please sugest

    A drop-down list is the bad INTERFACE design where an element can contain more than 100 entries. It is very good in tests, but absolutely unacceptable if the form must be used by a person busy doing their work. The choice of Acrobat forms are limited, but consider a list box. Despite this, there may be limits imposed by the system or the implementation.

    Better would be

    (a) stop filling after awhile the list and add an entry saying several elements not shown, running report or use better filter

    (b) be available for all filtering of course lists

  • How to choose a specific value in a drop-down list using javascript

    Hello

    I'm looking for a way to select a specific value in a drop-down list (the first value) using javascript? How would I do that? Thank you in advance.

    Here's how you can select the first item without having to know what it is:

    Set the value of the drop-down list to the first element cb1

    var f = getField ("cb1");

    var val = f.getItemAt (0, true);

    If (val) f.value = val;

    Change 0 to a different index if desired, or use-1 for the last item in the list. More information for the field getItemAt method is in the Acrobat JavaScript documentation.

  • Help select the value from a drop-down list box

    Hello

    I develop a script (in JavaScript) which will allow a user to select an export PDF presets (that are loaded in a drop-down list) and then export the InDesign file to PDF, by using the selected PDF preset.

    I have the combo fill properly and I am also able to export to PDF correctly, however I have a problem setting the preset has been selected by the user. Here are some of my code fragments:

    Drop-down list:

    with(borderPanels.add()) {

         pdfDD = dropdowns.add();

         sl = new Array();

         for (i = 0; i < app.pdfExportPresets.length; i++)

         sl.push(app.pdfExportPresets[i].name);

         pdfDD.stringList = sl;
         pdfDD.selectedIndex = 0;

    }

     

    ...

     

    myPreset = pdfDD.selectedIndex;

    In PDF format:

        // Open, Export, & Close
        for (i = myFileAmount; i >= 0; i--) {
            app.open(File(myFolderContents[i]));

            createHyperlinks();

            app.activeDocument.exportFile(
            ExportFormat.pdfType, File(myFolder.fsName + "/" + app.activeDocument.name.split(".indd")[0] + ".pdf"), false, myPreset);
            app.activeDocument.close(SaveOptions.no);
        }

    During the passage of myPreset, it is defined as 6 (the index from the drop-down list).  How can I set myPreset that the real value of what has been chosen?

    Thank you!

    In view of your code, you probably need something like:

    myPreset = app.pdfExportPresets.itemByName (pdfDD.stringList [pdfDD.selectedIndex]);

    @+

    Marc

  • What is the initial value of a drop-down list empty?

    I wrote a script to populate the items in a drop-down list but only if there is no existing entry.

    The problem I have is to acknowledge that the list is empty. I tried to test the value null (if dropdown.isNull = true) and test the

    rawValue = "" and a bunch of other things without good result.

    I don't know that it's easy, but apparently not for me.

    Thanks for the help!

    These commands to test the value selected by the user. As they have not chosen anything and yet they will not have a value.

    The command:

    DropDownList1.items.nodes.length

    This will give you the number of items in the DDlist. It is 1 based. Note that it will count all the elements that have been added to the drop-down list by the user.

    Paul

  • Make visible or invisible drop according to the value of another drop-down list. Help!

    Hello

    I need to create the following form... I want to choose at the beginning of the shape between 3 options (imagine: 'Opt1', 'Opt2' and 'Opt3'). And after that, I would like to make visible 10 different lists. I mean, if I choose 'Opt1', 10 drop-down lists related to 'Opt1' will become visible (the drop-down list together, including the text of the title and the clean drop-down list). Otherwise, if I choose 'Opt2', 10 drop-down lists related to 'Opt2' will become visible and the same 'Opt3 '.

    This problem, which seems to be very easy to resolve, it is impossible for me. I have read hundreds of forums and manuals, but I can't find the solution. I tried with several thousands of events, but I can't do the form works as I want... So, please, can someone help me?

    Thank you very much.

    Hello

    Here is an example. The script is located in the event of changing the drop-down list. The easiest way is to group your drop-down menus in subforms, then simply script for the visibility of three subforms, instead of 30 drop-down menus.

    The script focuses on the choice of the user and changes the visibility by using a switch statement. One if exposed to the exit event would work as well.

    switch (xfa.event.newText)
    {
         case 'Option 1':
              option1.presence = "visible";
              option2.presence = "hidden";
              option3.presence = "hidden";
              break; 
    
         case 'Option 2':
              option1.presence = "hidden";
              option2.presence = "visible";
              option3.presence = "hidden";
              break; 
    
         case 'Option 3':
              option1.presence = "hidden";
              option2.presence = "hidden";
              option3.presence = "visible";
              break; 
    
         default:
              option1.presence = "hidden";
              option2.presence = "hidden";
              option3.presence = "hidden";
              break;
    }
    

    Note that all three subforms are hidden in Design view. The drop-down list choice makes the appropriate subform visible.

    In design mode, you can select a subform in the view of the hierarchy and in the object/field tab change its visibility to visible, if you want to work on it in the design.

    Hope that helps,

    Niall

  • Why don't I receive not all values in a drop-down list in OBIEE?

    Hello

    Why I don't receive all the data which is present in the tables.and there is no limit in the County of datas? and there at - it presents another way to get all the data in the drop-down list in the tables?

    Yes, there is an internal limit on the no. values that are displayed in the drop-down list on guests. I guess that its 256 in 10 g.

    To increase the limit, add entry in the instanceconfig.xml below:


    1000

    This will increase the limit of 1000 values in the drop-down list.

    Thank you

  • Adobe LiveCycle upper tiny typed value in a drop-down list

    Please let me know if there is a way for a user (someone sent a form created with Adobe LiveCycle Designer to complete and send back) to be able to click on a menu drop down populated list and type a value that corresponds to one of the values in the drop-down list, but for the user do not have to worry about whether or not they type using all capital letters lowercase, or a mixture.

    For example, my XML data for this list is a list of over 1200 names as follows:

    < text > Jim Nazium < / text >

    Chuck Roast < text > < / text >

    < text > George Towne < / text >

    etc...

    I would like the user to be able to type "Geo" or "GEO" or "geo" and taking the part of the drop-down list for the first George, it is a...

    Thank you

    I used to do this workaround was to make the data all uppercase and then forcing user uppercase input.

    To force the capital letters, you can use the following on the change event:

    XFA. Event.change = xfa.event.change.toUpperCase ();

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

  • move selected value in one drop-down list to another

    Hello

    I have two lists, and I wanted to make sure that people choose in the first drop-down list before selecting from the second drop-down list. What I tried to do was so, if the user tries to choose something in the second and the first list was unsuccessful, an error message appears asking the user to select from the list.

    The problem I encountered: I can't change the value in the first list to the second list to check and see if the first list got whatever it is selected. Any idea?

    First list: Department

    second list: jobs

    in the first drop-down list

    var selected = xfa.event.newText;

    second drop-down list

    If (selected == "" |) some == "null") {}

    xfa.host.messageBox ("Please select from the first menu drop-down before choosing from this list.");

    }

    Thank you

    F.

    Hello

    In the first drop-down menu script, you declare a variable "selected". This form variable lives only in this event. You can not variable accessthat other events or other objects.

    You are on the right track, but rather to test the variable in the stated case, test the rawValue of the first dropdown.

    if (dropdown1.rawValue == null || dropdown1.rawValue == "")
    {
         xfa.host.messageBox(...);
         xfa.host.setFocus("xfa.form.form1.page2.dropdown1");
    }
    

    Hope that helps,

    Niall

  • Selecting a value in a drop-down list returns to an incorrect value

    Hello

    I have a table with drop-down lists in a column. The drop-down list provides 3 values: Yes, no and s/o. When the user selects n/d and leaves the cell, the value changes to no.

    Any thoughts on what is the cause and how to fix it?

    Thank you

    MDawn

    You can set the same value for two choices in the drop-down list. This is why it is failing the first condition in the list with the same value...

    Or

    You could not give the values for the items in the list... In this case, as they both start with "N", it will highlight the first item that starts with "N"...

    Set different values for each element in the binding tab, then click on specify point values.

    Thank you

    Srini

  • By selecting an option in a drop-down list displays a hidden text box and checkbox

    Being fairly new to the creation of pdf form I would be grateful for some assistance.

    I'm looking to have a number of choices in a drop-down list (dropdown1) show a hidden textbox (textbox1) and the box (checkbox1)

    The selections that would show are:

    iPad only

    Or

    Laptop and iPad

    I'm sure it's rather easy.

    Thanks in advance

    You can use this code as the custom for the drop-down list field validation script:

    var f1 = this.getField("textbox1");
    var f2 = this.getField("checkbox1");
    
    if (event.value=="iPad Only" || event.value=="Laptop and iPad") {
        f1.display = display.visible;
        f2.display = display.visible;
    } else {
        f1.display = display.hidden;
        f2.display = display.hidden;
    }
    
  • Drop-down list data connection - several text fields-

    Hello to you all, guru out there. I'm new on Adobe LiveCycle, but I have some experience coding in other languages, but not of JavaScript and XML. Trying to get a user to select a client and then based on this selection, I want to return several address fields, a Contact name at the customer's location and a phone number. The data connection is an ODBC connection to our CRM software, and information are stored in a table. The user of the form will be our Service technicians, and the rest of the form will be a place to type notes about the service call. We just try to facilitate the choice of the customer for our Service technicians to rather than having to type all the information. I've searched the forums and the solutions that I keep coming across are values defined by the user in the drop-down list, I have not found an example that illustrates this with a data connection. I work from a return address field to a text field (using the command .rawValue), but I need to fill in some more information. Any guidance would be greatly appreciated.

    Thanking you in advance,

    SSCLadam

    THW way I did is to use two data connections. 1st one to fill the DDlist with a list of customers. In this one, I use simple bind to do the job. Then a 2nd connection that will extract the folder of figurines based on the selection of the DDlist. This requires the code a SQL DB to retrieve the appropriate record. To implement this data connection, I can use the provided column headers to bind columns in the fields in my form. Then when this data connection is open (I put to delayed opening) and it returns the file in question are bound fields get automagically populated!

    I've included a sample I created... .you won't have the Pb, but you can at least see what I did. The code is on the change event of the DDlist

    Hope that helps

    Paul

  • Drop-down list complicated, making several text boxes

    Hello everyone. I searched high and low for something to talk about exactly how to do what I want - but I'm not finding anything that is quite right. Anyway, I want a drop down (with potentially hundreds of choice - I'd like to limit the number, but there is really no way...) where someone can choose their selection, then, after this election, several other text fields are filled with the corresponding information. I would like to have a file of database with the drop-down list of choices, then define somehow this on the ground and then what information goes into the next text box. This way you can get something from the menu drop down and the other boxes get filled correctly. Is this possible?

    Hi Joel, I think, if the information does not change much then your best bet is to stay in shape, as independent as possible, is to have the information contained in the form.  There are a number of connectivity problems that your users could suffer with an external data source.  I do not expect performance to be a problem, I developed forms with thousands of selections in a drop down, you can find the example I did a drop-down list of useful research in the Adobe Cookbook section, http://cookbooks.adobe.com/post_Drop_Down_List_Control_with_auto_complete__Searcha-18402.h tml, if your data contains a hierarchy then there are a number of examples around dependent dropdown lists to try , like this one http://thelivecycle.blogspot.com.au/2011/01/multi-level-dropdown-list.html. I'm glad you found my comments useful, cordially. Bruce

Maybe you are looking for