Add instance with the values of the previous instance drop-down list

Hi all!

Need help with javascript.   I have a form that contains a radio button B when you select it, shows a subform.  Inside the subform is a table that contains a drop-down list.  The drop-down list is populated based on a previous option box A, who has been chosen and is a subset of the possible values.

The user can click a button to create an additional instance of the subform.  It's the new instance is in the original version of the subform, and the drop-down list is not the subset of values.

How can I get the drop-down list in the added instance view only the subset dropdown values?

Let me know if you need more information.

Thank you!

Jodi

You need to access the instance of right holders...

Because you create new instances, you must access them using the method resolveNode()

You can access the instance by using the 0-based index, if you are in the event to initialize the combo you can simply use 'this' instead of 'Main.PreApproved.Awardees.Table1.Row1.AwardType '.

When you add an instance to the click event of button:

var newAwardees = Awardees.instanceManager.addInstance (1);

newAwardees.presence = "visible";

newAwardees.Table1.Row1.AwardType.clearItems ();

newAwardees.Table1.Row1.AwardType.addItem ("prize for Excellence in mentoring Faculty");

//[...]

DropDownList initialize event:

If (this.length == 0) {}

this.clearItems ();

this.addItem ("prize for Excellence in mentoring Faculty");

//[...]

}

If you change the value in the option button (which modifies the subset values):

for (var i = 0, oLen is Main.PreApproved.Awardees.instanceManager.count; I< olen;="">

var oneAwardees = Main.PreApproved.resolveNode ("Fellows [" + I.ToString + "]");

oneAwardees.Table1.Row1.AwardType.clearItems ();

oneAwardees.Table1 "Row1.AwardType.addItem ("prize for Excellence in mentoring Faculty");

//[...]

}

I hope this helps!

Tags: Adobe LiveCycle

Similar Questions

  • In the previous Version drop-down box, there is no 9 Adobe

    I bought Adobe Acrobat Standard DC (English Windows) and is installed on the PC. When installing Adobe Acrobat found an existing version of Adobe Acrobat 9 Pro and was asked to remove it. I clicked Yes to remove it. Then I tried to open DC Standard Adobe and Adobe asked to sigh in for the first time. After that, a message popped up asking to provide a serial number of the previous version of Adobe. In the previous Version drop-down box there is no Adobe 9. The oldest version is Adobe Acrobat X.

    Question: Can I use the product I purchased? If Yes, how can I sign?

    Acrobat 9 is not an eligible upgrade for acrobat dc.

    That is to say, you bought incorrectly dc acrobat without owning a product calling, Plans and prices | Adobe Acrobat DC

    Return, cancel or change an Adobe order

    [moved from the download, installation, commissioning to Questions Installation & update Acrobat]

  • Returns all the duplicate values in object lookup (PHP, drop-down list)

    Hi, I have a PHP page I designed as a search page. I have a number of drop-down lists that get their dynamic values from the fields in a MySQL database.

    At present, if there are any entries that have duplicate values in a certain area, they are all listed, in the order of the index database. For example:

    City:

    Derby

    Stoke

    Stafford

    Stoke

    Derby

    Derby

    Stoke

    etc...

    Now, I want to do is be able to show all results for a given city. In the find what drop-down list box, I would than each of the cities to appear only once rather than every time it is registered. included in this, I would like the page of results to then display ALL results that match this search criteria.

    Thus, in the example above, "Derby" appears only once, but when the user has selected 'Derby', it would return all three results in the results page.

    My results page is built on a dynamic form, so I am confident that the results page would make it according to the needs. However, how can I get the drop-down list box to ask him?

    > 'SELECT DISTINCT table1.champ1, table1.champ2, table1.champ3 FROM Table1 ";

    Duplicate rows to remove the DISTINCT keyword strength SQL. In other words, that it will only return the unique combinations of fields in your selection list. If you examine your results set, you will see that each line is separate, although there may be duplicates in a particular area. Because you want to populate a drop-down list, you must include a field in your select list only, otherwise you get of the dupes.

  • Form - enter the names of the State/province drop-down list

    Hello again,

    I use Acrobat Pro DC using a MC Pro and I want to create a list drop-down States and provinces on my form. After clicking Properties and then Options, is there a way to enter all state names at the same time instead of adding one by one? I know there are scripts out there, but I thought that I could create the list that I needed from the List of States - 50 AMERICAN States - Canadian Provinces - Australian States - Mexican States - Brazilian - States ListStates.co... and copy and paste them.

    I read on the drop-down lists, but I don't see that he offered to DC Pro. Please correct me if I'm wrong.

    Thank you.

    Yes, it's possible, but it takes using a script.

    The basic format of this script is:

    this.getField("DropDownName").setItems (["Alaska", "Alabama",...]);

    If you have the items in a text file or a spreadsheet and want to import at the same time you can use a tool like this, I developed, which can be purchased here: Scripts custom Adobe: Acrobat - items import from a text file to a combo box or a list box

    I also offer a free sample with all 50 US States file field drop-down list that you can copy and use in your own file.

  • Installed Adobe export in PDF and nothing comes up under the top right drop-down list export in PDF format

    Installed Adobe export in PDF and nothing comes up under the top right drop-down list export in PDF format

    Hi grahame52757429,

    Try to 'Repair Installation' under the menu help.

    Make sure you have last DC of Reader Acrobat installed on your system.

    In the meantime you can also use service to export in PDF format online. https://cloud.Acrobat.com/EXPORTPDF

    Kind regards

    Meenakshi

  • Need help with the code for drop-down selection, please!

    I'm falling out of scope with a drop of water in my form. My form is long, and certain areas are in Page 2. When I click on the "Customer hospitality event" drop-down list selection, the fields of P2 do not hide. Here is the code that I have on the menu drop-down:

    -form1. P1.meetDetails.meetType::exit :-(JavaScript, client).

    switch

    (this.rawValue)

    {

    " case" " Customer home ' :

    Header.PRESENCE = "visible";

    meetDetails.presence = "visible";

    meetDetailsaddl.presence = "visible";

    Form1. P2.rstatus.presence = 'hidden '.

    Form1. P2. Status.Presence = 'hidden '.

    breaking ;

    }

    Help, please!

    Thank you!

    I see that references to the P2 have no end of line separators (-).

    Form1. P2.rstatus.presence = 'hidden '.

    Form1. P2. Status.Presence = 'hidden '.

    The JavaScript runtime engine is perhaps unfortunate. Try to add them.

    Steve

  • Problem with the help of drop-down menu in the lifecycle Designer 8.0

    Good day;

    I'm having a little bit of trouble with a drop-down list. It has been designed using Adobe LifeCycle Designer 8.0

    In a form, I have a total of 73 points that can be selected in the drop-down list. Currently I have 3 dropdowns on the form. In the future, I will add a total of 73 drop-down lists.

    "When I try to select an item that is more than 4th to the bottom of the list, I get the error message" Adobe Reader 9.1 has encountered an error and needs to close. " When I click on "error information" I get the text next message, "AppName - the Error Signature. AppVer: 9.1.0.163, ModName: ModVer, AcroForm.api. 9.1.2.82, 0000948 offset a

    Thank you all

    Chomp

    Hi Chomp,

    When in design mode:

    If you highlight the Hiarchy palette dropdown, it remains highlighted? or the flip pointing to someother object?

    If you click on it directly in the workspace. It shows "drop" in the palette object for the "Type"?  or something unexpected?

    If she will not be highlighted or say something unexpected, it is your question - I suspect by copying and pasting the drop something has gone wrong.

    If so, you must get rid of these bad objects. My experience is that if you have bad objects you can have difficulty to remove directly and may need to remove the parent (the tablerow or subform that they have).

    I'm very curious to know if this is your problem. Please post an update when you get a chance.

    Good luck

    Stephen

    P. S.

    Go slowly when you copy and paste - make sure you that Designer is finished with this operation before starting the next batter - it takes more time than you may realize. Additionally, make sure that the object palette indicates that you are where you think you are, before pasting. After you are done paste an object, Designer has an odd routine indication of the Master Page as object type when its done. If so, set the focus again for which you want to paste, before sticking another menu drop down always in your Clipboard. If your drop down boxes in rows in the table, think about copy and insert any lines containg your DDL

    Finally, 73 DDLS 73 points? Wow! IMHO, 73 points is too much for a user. Consider using the preOpen and script, the filling of the DDL event. If you do this then you can fill in the with a shorter list once the user has made some choices. Just a thought.

  • Width of drop-down list and the number of drop-down list values

    How to increase / decrease the width of a drop-down list on the screen of your interview? In addition, how you increase the number of menu options drop-down user, some of my options in drop-down list don't show up. This shows only 3 points:...

    For OPM 10.4:

    Increase the number of visible items in a drop-down list

    There are two options:

    1. make a regular drop-down list instead of a list of drop-down list box. Regular drop-down lists always display all items, regardless of the length of the list. To do this, set "enable-search-comboboxes = false" in the appearance.properties file. "

    2. increase in the search results max for the combo box in the file appearance.properties, for example 'search max-results = 20' (or another number as appropriate)

    See article OPM the User Guide for more details: http://docs.oracle.com/html/E54499_01/toc.htm#Interviews%20and%20flows/Customize_Web_Determinations.htm#Change4

    I have a vague memory that the increase in the width of the drop-down lists is a bit more tedious. I'll take a look and post here...

    See you soon,.

    Jasmine

  • How to disable the search in drop-down list control

    Hi all

    I'm designing a dashboard with a command prompt. In this message, I use a drop-down list control which I hope to turn off the option "search...". ».
    Does anyone know a way to disable the option 'search' in a drop-down list control, so that users can not find values on the database.

    Any kind of help appreciated.

    Thank you!

    Laurent

    Published by: 988334 on 26 Feb. 2013 10:27

    Hi Laurent,.

    You can try the below workaround to hide the option "search...". "on the drop-down list.

    -Click on the dashboard to change where the dashboard prompt is present.
    -Add a text object to the page and paste the code below into it.

    -Check that you check the option 'Contains HTML markup'.
    -Save the page and run the dashboard. This should hide the option "search...". ».

    I tried this on IE and obiee version 11.1.1.6.6.

    Thank you
    Hyder

  • Select the string table drop-down list box.

    Hi all

    I want to select the combo box list based on a string in the entry, I don't know how to do this. I have a drop-down list box and the value comes from a database, what I want to do is I want to change the value of the selected box based on the existing value in the database drop-down list. for example, A, B, C D I strings in the drop-down list box, and then in my database, I have a field with the string C, I want to change the C to A. I can't enter the value of C in a string format, but I don't know how to be the first position of the drop-down list box in so the order of channels combo box will be C, A, B, d., the value of C

    Thank you

    Then just write a new array of strings, with the elements of the new agenda, to the "[] strings" - property.

    Either you must code something that allows you to create an array of strings with the elements in the order that you want them to be. If there is a reorganization only, you could do something like:

    -Get the array of strings [] from the drop-down list using a property node box.

    -Find the position of the element you want to place first and use "delete from table", which returns the new array and the element removed.

    -Build a new table 1 d of the deleted item and table remaining. Move to the second combobox Strings [] property of a node property.

  • I lost the most views drop-down list under the search bar, it used several times in the same session, and then he just disappeared.

    The drop-down list is / was my part used of any page, use it to access to everything I need. The only other thing I noticed changed it's new green bottom-tab at the top of each page: site Web Safe/number of trackers. I can't get rid of it. Avira virus control icon is on my desktop, but the icon also suddenly appeared on the right side of the search bar. I deleted it because I have it on the desktop. I have no why he appeared suddenly. It is my 3rd session today. I had not changed anything in previous sessions, so don't know why the drop down menu has disappeared.

    Any help appreciated.
    HK

    Hi, hopefully a screenshot can make things more clear - when you right click in the area of the red dot, then a popup menu will appear where you can re-enable the toolbar of bookmarks.

  • Count the number of drop-down list items based on the selection

    You will need to get an "account" (in the fields of totals at the bottom) of each of the values/items selected in the drop-down "ddClassification". My drop-down fields are labeled ' ddClassification.0, ddClassification.1... etc.

    Should a loop be involved? Been looking around for the answers but can't really find anything. The values in the drop-down list 'ddClassification' are 'Choose', 'Major', 'Minor', 'OBS', 'OFI '. If I could just get help on one of the "total" fields (for example perhaps the total large field) first then I could go from there. All THE HELP is APPRECIATED! Thank you!


    I have attached a screenshot and here is the link for the form: Dropbox - ASSESSMENT_NOTES.pdf
    Screenshot.png

    Yes, this requires a loop. Here's the Basic code structure, which you can use for the total key, for example:

    var total = 0;
    for (var i=0; i<=4; i++) {
        if (this.getField("ddClassification."+i).value==4) {
            total++;
        }
    }
    event.value = total;
    

    Place this code in the script to custom calculation of 'txtMajor '.

    Edit: Name of the field max adjusted from 5 to 4...

    Edit #2: Also adjusted the value of "Major" in the value of exports 4...

  • change the width of drop-down list

    I put a list on the form and have a link to the dynamic recordset.

    I want to change the width and height to the smallest, but it seems that it does not change when I change the value of the control.

    I can easily to change the width and height of the text box, but it does not work for drop-down list.

    What size I can change to change the width and the height of the drop-down list?

    Your information and help is much appreciated,

    Kind regards

    Iccsi,

    There is no ownership for this.

    http://www.w3schools.com/tags/tag_select.asp

    Use CSS, instead.

  • Help needed on the links between drop-down list boxes

    Hello

    I use 8 adobe life cycle designer to make shapes. These forms are usesd to collect information on people working in the health sector.

    I want to use drop-down lists that are "connected". According to the choice made in the first box, the user will receive new options in the second box.

    Example:

    Dropbox 1

    Values

    -value 1

    -value 2

    -value 3

    Dropbox 2

    If the value of things 1 user, they can choose the following values in dropbox 2:

    -Value has

    -Value B

    If the value of things 2 user, they can choose the following values in dropbox 2:

    -Value C

    -Value D

    If the value of things 3 user, they can choose the following values in dropbox 2:

    -Value E

    -Value F

    I've been puzzeling for awhile, but impossible to find the solution for this.

    Thanks in advance

    Daniel

    I'm compatible pdf for ES 8. Now we work. https://workspaces.Acrobat.com/?d=qBsk3hERFH2RcSn5vQ5rBg

    When the script does not check

    scripting language - javascript

    ObjectName - is your identical objectname (when your dd called dd_choice2 or dropbox_2, then you must modify the script)

    case "123":
            dropbox_2.clearItems();
            dropbox_2.addItem("Please select a value");
            dropbox_2.addItem("456");
            dropbox_2.addItem("789");
            dropbox_2.selectedIndex = 0;
            break;
    

    The behavior is correct when you copy them.

    You select '123 '.

    2 JJ '456' and '678 '.

    You select "456".

    2 JJ "123" and "678".

    You select "678".

    2 JJ '456' and '678 '.

    Please give your feedback tomorrow if it's work.

    Kind regards Mandy

  • Show / hide the text box drop-down list database

    Hi all

    First time post here - wahoo!  :-)  Brand new user of LiveCycle, and so far I'm loving - very cool app!  I am a bit puzzled, however, and hoping someone can help...

    I am using LiveCycle version 8.05 and try to build a form that has a drop-down list with departments in our Organization.  If the user selects the elements 1-5 on my list, I want two other fields at autopopulated (one for the Admin Assistant) and one for Dept Head.  If however the user selects 'Other', I want a text box (it will be hidden the rest of the time) where the person will be able to type in the Department they work for.  For now, I'm only interested on getting the box 'Other' to appear; I'll worry about the other stuff later.

    Elsewhere in my form, I have a functioning drop-down list that displays a text based on the selection field; However, for some reason this logic does not work with the situation described above.

    My code for the working text field is (in JavaScript)

    var
    
    (sNewSel)
    case "1": 
    switch
    {
    
         TextField6.rawValue = "My text is in here";
    break;
    case "2":
    
    
    
    = "My second text is in here ";
    
    
    break;
    "3":
    
    case 
    
    = "My third text is in here.";
    break;
    TextField6.rawValue
    
    default:
    }
    break;
    
    
    TextField6.rawValue 
    
    
    sNewSel = this.boundItem(xfa.event.newText);
    

    After many fruitless hours yesterday, I got only to the extent where the code below; This was more or less copied right out of a post here.  When I click on the drop-down list, select 'Other', the text field is displayed.  I tried the definition of the text field to the times 'Hidden' and 'Visible' through properties of the object, but no luck.  I tried to use IF statements, subforms and anything else I could think of but am getting nowhere.

    var nSubLength = Subform1.nodes.length;
    var 
    sSelectField 
    for
    
    {if
    {switch (xfa.event.newText) 
    (case "6":
    Subform1.nodes.item(nCount).presence
    break
    default:
    Subform1.nodes.item(nCount).presence
    break
    }
    }
    }
    ;
    = "invisible";;= "visible";((Subform1.nodes.item(nCount).className == 
    "field") &(Subform1.nodes.item(nCount).name== sSelectField)) 
    (var nCount = 0; 
    nCount < nSubLength; 
    nCount++) sSelectField = fieldList.rawValue;
    = sSelectField.replace(' ', '');

    Any ideas?  This is very new to me, but I am familiar with other programming languages, and something this simple should not be difficult which leads me to think I'm missing something.

    Thanks in advance

    Chris

    It was easier to create a sample for you... Please see the attachment.  I think that's what you want.

    The code is on the change event of the DDList

    Paul

Maybe you are looking for

  • New iPhone 6s dies in the 'cold '.

    My iPhone 6s was to die often lately. Last night it was 0 degrees celsius or 32 degrees fahrenheit and it happened again. He actually did at temperatures as high as 5 degrees celsius. I never had this problem with my iPhone 5 that I used before the 6

  • DV7-7012: Beats Audio Panel works do not (it's there, but it does nothing)

    I had to make a Windows 7 in place 'upgrade' to repair a damaged system.  The new version of windows was the same as the old (win7pro 64-bit) and I eventually installed all the patches and updates. But now my Beats audio Panel does not work.  No erro

  • Not displaying not metadata

    Version 1.2.1 of the Browse catalyst Images of F5 and FS7 - where I used to see metadata info, now it shows just the circular arrows all the time. Also as a note aside, every time I left catalyst browse, the process continues to run and I leave the T

  • UDATE drivers pavilion g7 2340dx

    When I hp.com support scan my pavilion g7 2340dx updates the driver he says "HP could not verify that you have this product, but found other products."  What do they mean that I am sitting here use it?  How to cross such a stupid statement?

  • EA4500 of installation support

    Currently, I have a Netgear router installed. Just bought the EA4500. Came with a CD, so I unplugged the existing router, brought the CD and started to follow along. Installed the modem cable, installed the cable from the computer and turned on 4500.