User entered values to populate a drop-down list.

I created a form with a fixed number of lines dynamically.  Each line has a drop-down list field that is initially empty.  I want to add user input to the list to be used on the ground in the following lines.

Hello

Here is an example that could help.  https://sites.Google.com/site/livecycledesignercookbooks/home/ReferenceNode.PDF?attredirec ts = 0 & d = 1

This form allows you to add a drop-down list item value and id which is then picked up by the drop-down list control.  The main problem is having to do a xfs.form.remerge (), which can reset certain properties that are not related to something, usually border error and others.

Does not seem to need a reinstall, so for the new line is not necessarily a problem.

Concerning

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • 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

  • 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;
    
  • A drop-down list can do the calculation based on the value selected in a drop down list?

    Form Acrobat X Pro Adobe

    Can I have a drop down list create a calculation based on the value selected in the menu drop-down?

    We have a set lunch and want the user to choose to be "A lunch', 'Lunch B'"C Lunch"or"just the milk. "

    It is for each of the 5 days of the week. There are therefore 5 drop downs, which have all the same 4 above choice.

    If the user chooses among the 3 lunches and then put $2.00 in the total box at the end of the line. If 'Just the milk' may put 0.50 in the box.

    The total area at the end of the line must keep a record of all 5 days and give a total.

    So if someone chooses lunch A LUN, sea and Sun and just milk for Tuesday and Thursday and then the total for this week must be $7,00

    Is it possible by using code or something?

    I did it in Excel, but we need it is an Adobe pdf file.

    TIA

    OK the total box has a 10 all the time to make it look like $ 2.00 for

    everything.

    Before even that I chose something there are 10 in the box.

    I am a newbie to Adobe scripting Total used VB/A .NET etc ' 1980

    However.

    Can you do any debugging in code?

    Initialize the sum

    var sum = 0;

    Make a loop on the drop-down list boxes and add the cost of the invoice sum

    for (var i = 1; i)< 6;="" i="" +="1)">

    Sum += getField("Week1Day"_+_i).value == 'just milk? 0.50: 2,00;

    }

    Set this field to the amount

    Event.Value = sum;

  • Values preselected in the drop-down lists

    Hello world

    Some quick experience before indicating the problem: I have developed a set of forms in ASP.NET works with a SQL Server 2000 database where my client can add, modify and search for records within their intranet. When you add a record, they make a few selections in a drop-down list where values are dynamically filled with a lookup table. There are three sections to the form, and each section gets its values from another table. When you edit a record, the drop-down lists should show all the choices but pre-populate the list with their previous selection.

    Here's the issue: everything works fine on my box and 90% on my client's server. The problem is that when you change a record, two of the three sections of the form to display the correct values. The third section shows the first choice in the menu drop-down list rather than what was recorded in the comic book.

    Yet once, it is not the case in my development environment. It only happens on my customer's environment. I have triple-checked the code and confirmed that the types of data in the tables correspond to what I got set up in my db. The fact that these pages are behind the firewall of my client make the error usual kind of very difficult troubleshooting.

    It's very mysterious. Any suggestions for what I can check and how I can fix this?

    Thank you.

    In case someone else has this problem, it seems that the deletion and re-creation of the table solved the problem. I renamed the original table and compares it to what I recreated and they look identical, but nevertheless it is the solution.

  • How to populate the drop-down list

    Hi all
    I created a drop-down list field in the user form, can someone tell me how to fill in OIM design console

    Hello

    You must after steps.

    1. create a search by going to the definition of research for example Lookup.org.emp.type.
    2. Add the code and decodes the value by clicking on Add. These values will be filled in the combobox.
    3. go to the UDF then go to the Properties tab. You select UDF created and then click Add Property.Then select Code Lookup in name of the property, and then in value, you put the search that you created.

    Let me know if you still need anything.

    Concerning
    Nitesh

  • How to set a repeating subform based on a value selected in a drop down list?

    Please forgive me if this is somewhere, but I spent a few hours searching and have not led to what.

    I have a drop-down list that allows the user to select the number of teams in you listing (1-5). Then I have a subform with all the necessary information for each team. I wish that the subform to repeat automatically based on the number selected in the drop-down list, because I need this information for each of the two teams by registering.

    Thank you!

    In the case of exit of the drop-down list, in formcalc, put something like:

    teams of var = $.rawValue

    var counter = 1

    While (counter< teams)="">

    Subform2.instanceManager.addInstance)

    Counter = counter + 1

    endwhile

    This assumes you have already 1 version of the subform. If you are a beginner with no condition (meter while doing<=>

  • Value selected in the drop-down list, the value border and subform border color

    OK, I'm busy to create a form that has a field drop-down list. There are five values inside the drop-down list. I have also four subforms which contain tables and fields for each option in the drop-down list except the first. Now, I want to put the border and the color of the border of the subform if you have selected the correct value.

    As part of the output, I created the code as follows:

    If (this.rawValue == '5') {}

    this.resolveNode("TextfieldName").presence = "visible"; This affects a visible text... works like a charm

    Optie1.UI.oneOfChild.border.color.value = "255,153,0"; After an example I found Niall

    Optie1.UI.oneOfChild.border.color.thickness = "0,0200" in

    }

    I've changed this in Optie1, is the name of the subform. Somehow it is not applied in the subform. I know I'm wrong, but can't find what I want on the forums. Someone at - it an idea on that?

    Well, managed to resolve myself to play around with the code.

    It should be:

    Optie1.border.edge.color.value and Optie1.border.edge.thickness.

  • How to change the color of the text on the user interface control, such as the drop-down list component

    Hi, I want to change the color of the text in drop-down list because I want to set background color.

    How to do this?

    Thank you

    He suggests as a feature on jira. or write a custom, component drop-down list does not support this.

  • Populate a drop-down list based on selected in a drop-down list in a separate table

    Good day all.

    This may seem a simple question for most, but... He had me frustrated trying to figure out.

    I'm trying to fill in a drop-down list that is based on what is selected in another drop-down list.

    Let me explain what I've done so far.

    Life cycle of Designer 8.05.2

    When I got the two drop-down lists in the same table, I've not had a problem. The code I used is

    The table name is "table1".

    if (directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("select" "")

    }

    I was asked to move things and now 'division' is located in 'Table2 '.

    I know that I need the "Table1" reference, but I'm running into a syntax error. I tried the following code;

    if (Table1 Row1 directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("make a choice")

    }

    if (Table1.Row1.directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("make a choice")

    }

    Any help would be appreciated

    Chomp

    You are missing a semicolon at the end of the line, addItem, and the second code example, you have no periods in the SOM (Table1 Row1 direction) reference.

    The best way to get the path to another field is to ctrl-click on the ground while you are in the script editor.

  • Returns a value based on the drop-down list

    I am a newbie making the PDF form and had recently started working with a Live cycle to create a form to fill out and succeeded in creating an a model for use with the good example of order (by trial and error) that came with the installation. Can someone help me please this form.  I have a drop-down list on the POINTS column and want to automatically display the unit price of the selected item in the drop-down list. Either way, I managed to make the fluid table.

    menu.JPG

    http://Forms.stefcameron.com/2009/02/25/expandable-table-with-totals/

  • How to populate a drop-down list box itemEditor

    Hi all

    I have a DataGrid where one of the columns is a drop-down list box. I use a component itemEditor for the drop-down list box. I guess that's the best practice? I have an arrayCollection collection in my application I want to use in the itemEditor, but I'm not sure how to pass data to the component. Here is my code. Any help you could provide on how to do this would be greatly appreciated.

    Answered my own questions.

    Just need to add the result to my model object and then use it as my dataprovider.

    DOH!

  • reset the number of subform based on the value of the selected drop-down list

    Hello

    I have a questions.  I have a form called request.  Inside of the application form, there is a subform called MultiForm, which is repeatable.  Application form has a drop down DropdownList1.  MultiForm has buttons 'Add profile' and 'delete profile '.

    The form is the first launch, query appears with DropDownList1, MultiForm button "Add Profile".

    That the user clicks on "Add Profile", a second MultiForm is insert.  On this second MultiForm, there is the 'Add Profile' button and 'delete profile '.

    When the user change the value of the DropDownList1, I want the number of MultiForm reset so that it has only this MultiForm.  The 2nd, 3rd, etc., MultiForm is deleted.

    Also, I want the "Add Profile" button to show only on the first MultiForm, not the subsequent MultiForm.

    I came with the scripts below:

    Remove MultiForm (added under the change event for DropDownList1.

    function resetMyForm (myForm) {}

    var vCount = myForm.count;

    If (vCount > 1) {}

    If (vCount == 3) {}

    myForm.removeInstance (2);

    myForm.removeInstance (1);

    } ElseIf (vCount == 2) {}

    myForm.removeInstance (1);

    } else {}

    do nothing

    }

    } else {}

    do nothing

    }

    }

    -The reason this function works for me because I'm only accommodate max 3 MultiForms to insert and there is always a MultiForm on the page.  I'm looking for a more "dynamic" script instead of the 'static' script above.  Any suggestions would be greatly appreciated.

    Also, I have another question: I want the "Add Profile" to be present on the first MultiForm only.  As new MultiForm added, I don't want the "Add Profile" button to display on the subsequent MultiForm (with the exception of the first form)

    Is there an example of a function that I can use?  Where should I insert this function?

    Thank you very much for your help.

    Hello

    A quick fix would be the setInstances() method.

    I'm surprised you found removeInstance() to work without calling instanceManager or trait shorthand (_) underscore.

    _myForm.setInstances(0); // remove all instances
    _myForm.setInstances(1); // create a new blank instance
    

    Hope that helps,

    Niall

  • The floating field value based on the drop-down list selection (sex)

    Hi, I have created a form that will have different fields, dropdowns etc where the answers will fill a range of fields floating in a letter. I would like to have a list drop-down for sex (m/f) and if selected, either fill in the letter as 'he' or 'she. ' Is this possible?

    Hello

    Here are some ways to do it in this sample https://sites.google.com/site/livecycledesignercookbooks/home/HeShe.pdf?attredirects=0&d=1

    Unrolling of male/female can have a bound value from it, which means we can do refers to the value directly, without however going any calculation.  Is there are a lot of places where it needs to be replaced, then you can simplify things by making reference to the field to form directly, although this requires to change the XML, but if you won't find yourself with a hidden for each instance field.  Or you could edit the XML Source and change the reference for the same id of a floating field.  There are examples of both in the sample linked above.

    Concerning

    Bruce

  • Moving Listbox values in the other drop-down lists

    Hi - I am an advisor to undergraduate students. I am trying to create a planner of degree two page. Page 1 of the Planner keeps track of the required courses. See this link for my inspiration. Page two helps students during the sequence. Here is an example of page two of something I did in Livecycle.

    My vision is for students to complete what they have completed on page 1, the poster form the unfinished journey in a main list at the top of page two and students can delegate classes to any sentence they want. I have attached a work in progress at this post for your comment.

    Here's my problem; I'm new to javascript. If you looked at the example, you can see that I figured out how to create a dynamic drop down and fill the list box on page 2. I need help, find ways to move values between the areas of list on page 2. Is it still possible?

    Thanks in advance.

    -Brian

    Form1. Page2.Term1Button::click - (JavaScript, client)

    Form1. Page2.Term1.AddItem (form1. Page2.ListBox1.RawValue);

Maybe you are looking for