Not drop-down list values in the XML that is generated after completing the form

Hello

I have a form that has a drop-down menus of the filling of an XML file, the items in drop-down list to a text and value associated with it.

The problem is when I generate the XML of the form value labels are coming in instead of the text in the drop-down list.

Pls help. How can I get the text of the value of the dropdown list selected in the XML file?

Thank you

Ludovic

Hello

I would recommend going to the object > linking the palette and deselecting 'specify values ". In this way, the display values will be included in the XML, as the display value will be the same as the .rawValue from the drop-down list.

However, this means that any script that references the drop down menus will use the values to display for the items and not the previous related values.

Hope that helps,

Niall

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/

  • Criterion from the drop-down list value null | " "

    I wrote a script to sign before testing a value in a drop-down list before allowing the signing of the document. However, I want to test a null plus a space aka "". "" I added a value in the drop-down list of "" as well as the choice of names for users could erase an accidental in this list selection before they were ready. However when I place the operator (|) in the case or statement of the script, the script does not work. If I remove the | "" declaration the script works as it is supposed to. " How to test for this value of "" as well as the test null so I don't have to write a further statement?

    If (form1. Page3.author.reviewed.admin.RawValue == null | " ")

    {

    xfa.event.cancelAction = 1

    xfa.host.messageBox ("you have not selected your name on the drop-down list before trying to sign the document.");

    }

    on the other

    {}

    ;

    If the declaration is incomplete. You need to test again for the other value:

    If (form1. Page3.author.reviewed.admin.RawValue == null | Form1. Page3.author.reviewed.admin.RawValue == "") ""

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

  • 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

  • Drop-down list always displays the first value? How can I empty place

    I have several drop down from the fields list. An example would be the city. It allows a user to select a city. I want the form to be completely empty to start. Currently, when the form is initially pulled up, it shows the first value in the list. All my drop-down list fields exhibit the same behavior. Is it possible to be just empty instead?

    You can send the form to [email protected] and I'll take a look to see what is happening?

    Thank you

    Paul

  • Binded based on drop-down list values in a table of fluid

    Can anyone help me please with my form of practice?  I'm just started learning make a fillable pdf form. I did my practical form modeled after the purchase order example provided with the installation of livecyle.  I want my table to automatically display the unit price when I select an item in the drop-down list.  I managed to do it using the script below.  The problem comes when I add my guard selection by returning to the first item on the drop-down list or on my first selection on the first row of lines. I would like to add something, the script below.  Help, please.

    menu.JPG

    RefreshmentOrderform.RefreshmentOrder.details.detail [0]. item::change - (JavaScript, client)

    unitprice.rawValue = this.boundItem (xfa.event.newText);

    unitprice.value = xfa.event.newText;

    Hello

    The problem you are having is because the ID of the drop-down list values are duplicated, if I choose cherry slice that get a 3 id (which is supposed to mean $3.00), but it is also the id of the Ambassador (as well as Brownies and coffee).  If similar problem with chocolate tarts going assorted Mini Cookies.

    If you keep the unique id.  At first, I thought that you must assign the id 1,2,3,4... and a search in the table for the price, but I liked your idea to keep it all in the drop-down menu control, so if you changed do so their unique, something like 1: 3. 00, 2:1. 50, 3:3. 00,... you could strip the part before the colon by changing your code change event;

    unitprice.rawValue = this.boundItem (xfa.event.newText).split(":") [1];

    That transforms the id in a table and takes the second element.

    In addition, there are a few errors in your form.  In Acrobat (or reader) you should turn on 'See the console on errors and messages', which is located under preferences... JavaScript.

    The second line in your change event causes a runtime error as the value property of a numeric field is its default value and to reference properly, you need to use.

    unitprice.value.oneOfChild.value

    But you do not have this line at all in this case.

    There is also a problem with the initialization script in numServiceChargerate, that looks like a problem of displacement of FormCalc in some parts of the JavaScript form in others, I would try and stick with one or the other.

    Good luck

    Bruce

  • Registration of dependent drop-down list values

    Hello

    I have a form that has a dependent drop-down list, that is, if a user selects a value, another drop-down list is filled with other choices. This works with success, however if a user saves the form with these selected values, when they open the form again the first drop-down list value disappeared; is it possible to validate this value when the form registers so it does not disappear on reopen?

    Thanks a lot for your help.

    Scott

    Of course, I would be happy to take a look.

  • Check generate some Comp based on the drop-down list box and the selection list?

    I currently have a dropdown list with the three sizing options in it. Then I have two check boxes, one is ticked ideally would create the model to its normal size composition and if other is checked that it would reverse the widthxheight in the size of the composition. Then below that I have a "Generate" button, I want to be able to click and according to my selections, it creates the model.

    Looks like I need a kind of if then statement, but I'm having a hard time putting the two together. See below what I have so far.

    There may be missing parts, but I have it all working in a decibel pallate currently. I don't have functionality related to a button again.

    Any help would be appreciated!

    (also I don't know how to format the script spread here so apologies for that)

    ---------------------------

    palette controls

    templateGen.VerticalCheckbox = new Object();

    templateGen.HorizontalCheckbox = new Object();

    set the values for controls

    templateGen.comLookup = new Object();

    templateGen.compLookup = 'Template1 ';

    templateGen.compLookup = "Template2";

    templateGen.compLookup = "Template3."

    function templateGen_getHashValues (hash)

    { // {{{

    var ary = new Array();

    for (k hash) {}

    ARY.push (Hash [k]);

    }

    return area;

    } // }}}

    menu "composition".

    var panelGrp1 = templateGen.palette.add ('Panel', undefined, 'Templates Comp');

    compGrp1 = panelGrp1.add ('group', undefined, 'List templates');

    compGrp2 = panelGrp1.add ('group', undefined, 'Orientation');

    compGrp3 = panelGrp1.add ('group', undefined, 'Generate');

    templateGen.compList = compGrp1.add ('dropdownlist', LIST_DIMENSIONS, templateGen_getHashValues (bapple.compLookup));

    templateGen.compList.helpTip = "choose the type of desired here device model. All compositions are 60 fps. « ;

    templateGen.compList.selection = 'Template1 ';

    templateGen.compList.graphics.foregroundColor = darkColorBrush;

    templateGen.VerticalCheckbox = compGrp2.add ('checkbox', undefined, 'Portrait');

    templateGen.VerticalCheckbox .value = true;

    templateGen.HorizontalCheckbox = compGrp2.add ('checkbox', undefined, 'Horizontal');

    templateGen.HorizontalCheckbox .value = false;

    templateGen.generateBtn1 = compGrp3.add ('button', undefined, 'Generate');

    applyBtn.onClick =? ;

    When I work with drop-down menus, I always liked to tie the data they represent (like the width and height of the model in this case) directly to the elements.

    I run the code to really check, but it should work like this:

    -----------------

    Add models to your drop-down list and store the items in a table

    models var = [];

    models [0] = templateGen.compList.add('item','template1');

    models [1] = templateGen.compList.add('item','template2');

    models [2] = templateGen.compList.add('item','template3');

    set a width and height of each element

    models [0] .width = 1280;

    models [0] .height = 720;

    models [1] .width = 1024;

    models [1] .height = 768;

    models [2] .width = 1920;

    models [2] .height = 1080;

    Choose the item that should be selected by default

    models [0] .selected = true;

    applyBtn.onClick = function() {}

    read the width and height of the selected item

    var width = templateGen.compList.selection.width;

    var height = templateGen.compList.selection.height;

    {if (templateGen.VerticalCheckbox.value)}

    swap width and height

    var temp = width;

    width = height;

    height = temp;

    }

    now create your comp here with the given width and height

    }

  • Display a drop-down list value

    Easy question for someone. Difficult question for me. I tried to have a textField display the display value in a drop-down list that is filled with a script based on a selection of button radio. I have a problem with the text field to display something else then the value of the drop-down list selection. I tried the 'value' instead of rawValue but I'm having no luck. Can someone help me?

    Hello

    When it comes to drop-down lists, there are two properties that are at stake. If you have specified the values in the object > linking the palette, then the .rawValue will have access to the bound value.

    What you are after is the display value of the drop-down list (for example, what the user sees).

    Here is an example:

    http://www.assuredynamics.com/index.php/category/portfolio/accessing-bound-and-display-Val Siu des menus drop-down.

    Hope that helps,

    Niall

  • Is this possible? Subforms appeal based on the drop-down list associated with the database

    I'm hoping to make a dynamic shape and I wonder if it's possible.

    I have a database with about 300 entries - pieces of agricultural goods and a few little bits of info on each of these properties. I want to create a form where users can choose the piece there rather than the property in a drop-down list. Based on the property they select, another menu drop down to fill with the cultures associated with this property. Then based on the selection made in this drop-down list, a specific form will be brought upward.

    For example, a person selects property #102 in the drop-down list. In the database, property #102 is associated with wheat, barley and corn, so the next drop would be complete with these three cultures. The user selects the wheat in the drop-down list and the form of wheat would be called. 

    I hope I explained that well enough.

    Is this possible? And if it's possible, how complicated to do? Assuming that I already have the database and subforms, it would be a long process from weeks to the script, or it would be simple enough?

    Yes, this could be done, here is an example that should help: Drop dependent dropdown (specimen attached)

    On the basis of selection (change event of the second menu drop-down), you can show or hide a subform.

    -Wasil

  • Get the value of the drop-down list (selectedIndex) and the text field - does not

    Hi all

    I'm trying to find and change the values selected by the user using a drop-down list and text field. Here's the code.

    ChangeRevDetails();
    function ChangeRevDetails(){
    
    
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    
    
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
    
    
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
      
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
    
    
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});   
         var MyRev = col2.textEditboxes.add({minWidth:100});
    
    
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    
    
        var myResult = myDialog.show();
    
    
            if(myYear.editContents == "") //entry is "" 
            { 
            alert("Please enter some text into the contents field."); 
            ChangeRevDetails(); 
            }
            else if(myResult == true) //user entered datas 
            { 
    
    
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
    
    
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;       
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
      
        } 
        else //implies user clicked cancel 
        { 
        myDialog.destroy(); 
        }
    
    
    }
    
    

    The problem is, it does not take the value that the user selects in the drop-down list and the text field. It takes the default value as "January" and the year is '2013' as these two values are given as selectedIndex:0 and editContents: "2013". I compared the coding with a few other scripts work as well, but it does not work. I added several alert boxes to check the value we get.

    In addition, search for it and change also does not work. Please help me on this. Thank you.

    Kind regards

    Bachi. D

    Change the order of dialogresults:

    ...

    var myYear = col2.textEditboxes.add ({editContents: "2013", minWidth:100});})
    var MyRev = col2.textEditboxes.add({minWidth:100});)
    Ditto var = myDialog.show ();
        If (myYear.editContents == "") //entry is «»
        {
        Alert ("Please enter a text in the content field.");
        ChangeRevDetails();
        }
        else //user entered if(myResult == true) datas
        {
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    "var RevToReplace1 = RevMonth + ', '+ RevYear;

    "var RevToReplace2 = RevMonth + ', '+ RevYear + 'Rev' + RevNumber;

    ...

    did not have a look for the problem of change to find

  • Increase in the drop-down list values

    Hello

    How to increase not the drop-down list in the time values?

    I tried to use this

    http://obiee101.blogspot.com/search/label/prompt.

    but not helped me


    Suresh-

    Hello

    Try adding the following to the instanceconfig.xml


    nnnn

    where nnn is the number of lines that you need to answer to the.

    Ian

  • Fill in the cc field, based on the drop-down list values

    I know this question has been posted before, but I am very new to this, and the answers I found to date are over my head.

    I am trying to create a submit button that will not only send email to a specific address, but also the carbon copy someone when their name is selected from a drop-down list in the form.

    I don't know much about javascript - and this seems to be the way to achieve this - but I do not know where to enter the JS to get this functionality or syntax. The field I use is called "Supervisor1", and I attributed values (e-mail addresses) to each of the names in the menu dropdown.

    Can someone help me get there?

    Thanks in advance!

    Hello

    If you are a beginner of script, you might think this useful macro.

    It can add a script to mail to a normal button.

    http://thelivecycle.blogspot.de/2012/05/mailto-maker-Marco-v1.html

  • Change the image when the drop-down list value form is selected

    I really thought that it would be easier but I can't function.

    I have a consignment of Paypal with a drop-down list. The list to select the color. I want to change an image on the page to display the correct color when the color is selected in the drop-down list. So a black image occurs when black is selected, a red when red - etc...

    I would be very grateful if anyone can share some brief, the browser compatible code. Thank you for any assistance you can provide.

    Bill

    You are right that this is not as simple as you might think at first.  You asked for succinct, but there are several steps involved in mode Code (horror!)

    1) first add this script just before the closing tag () on your page head and then insert all your path/imagenames where see you mine.  Notice of the ORDER OF THE IMAGES must match the order of your choice to be called with the list of drop-down selection in your form! :

    2) in second place, in your form, add the below onchange event for thetag.  Note that in this example, the ID on the we will work with the tag is "theImg", change that, as needed.  If youdo not already own one identifying the tag (see further below), just use "theImg".

    So here's a form with a select field.  Use whatever values you need to do this, just add my onchange event as shown:


      <>name = "productColors" id = "productColors" onchange = "diva_imgBySel ('theImg', this.selectedIndex)"> "
       

    3) Finally, you can click on thetag, then click on the Tag/behavior window, click sound + plus sign and select "Preload Images" and adds all imagenames so they will appear more quickly when the selection list is used.

    Hope that all of the senses.

    -- 
    
    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    

Maybe you are looking for