Hidden visible repeatable subform based on drop-down list selection.

LiveCycle - hidden repeatable subform becomes visible when a "MO" is selected. However, if "MO" is replaced by "KS" or any other State in the expandable lines, visible subform should back to hidden.

Hello

to be able to do so, you should have your drop-down list in a repeatable subform which should be considered your main earthquakes Canada, so you can have 5 drop-down lists with each subform respectively 1 comes with it.

So let's say that your drop-down list in a repeatable subform, and you have another subform linked to this drop-down list below

in your drop down list exit event list, you should have if statements to determine what value is chosen, and then according to the selected value display you or hide the subform

This.parent.index is the index of the subform you want to hide, if your combo is directly in the subform repeat you to the other subforms you hide / show

If (this.getDisplayItem (this.selectedIndex) == "MO") {}

Page1.resolveNode ("repeatSubform [" + This.parent.index.ToString () + "]"). Presence = "visible";

} else {}

Page1.resolveNode ("repeatSubform [" + This.parent.index.ToString () + "]"). Presence = "hidden";

}

I hope this helps!

Tags: Adobe LiveCycle

Similar Questions

  • Hide/show several subforms based on drop-down list selection

    Hi - I'm wanting to use a selection from a drop-down list for hide/show 17 subforms which contain only text. I tried if/else instructions that I used in the same way before but I have problems of implementation of that time. Is there a better way to do when several subforms are required to show/hide. Thank you.

    What event trigger you the action on? I have the following to the Exit event and it works.

    If (this.rawValue == "Hide") {}

    subForm1.presence = "hidden".

    }

    on the other

    If (this.rawValue == "Post") {}

    subForm1.presence = "visible".

    }

    If however you have the button 'Specify Item values' clicked on the link tab, you need to change the "Hide" values for their specified either value "1".

    You have changed the code to:

    If (this.rawValue == "2") {}

    subForm1.presence = "hidden".

    }

    on the other

    If (this.rawValue == "1") {}

    subForm1.presence = "visible".

    }

  • from the drop-down list selection to multi-line output

    I am trying to create a pdf form with Adobe XPro, where I will have multiple delivery addresses. I want to have is that the user can select the correct recipient group in the drop-down list.

    Given that the drop-down lists pdf format are just simple lines the drop-down list selection could only display the name of the company (e.g., COMPANY A) and selecting the company wanted to, this would trigger the whole address (multiline) to appear as described below (on another text field is ok if necessary)

    THE COMPANY

    StreetAddress 1

    City of ZIP-1234

    Does anyone have an easy solution for this?

    I have created a sample form for you, please look at attachment.

    PDF form does exactly what you want.

  • Subforms appear depending on a drop-down list selection

    I need several subforms to appear in function which is selected from a drop-down list. I've specified 7 item values, if the person chooses the item 1, I would like to point 1 subform to appear.

    If the person chooses point 2 or 3 point as well. I would like to both subforms to appear.

    How can I do this?

    I also, for items for does not appear on the once selected drop-down list. I know that JavaScript will appear in the case of "change."

    I need help!

    Thank you

    Hello

    I have created an example of what can be found here

    Based on what you have asked, I made a simple example with 2 subforms. If the option of the subform drop 1 will be shown then if you select drop-down list will appear 2 2 subform

    I also added checkboxes as an alternative method.

    See the example in

    http://www.dubdubdubdesigns.co.UK/LiveCycle/show-hide_subform.html

    Concerning

    Graham

    DubDubDubDesigns.co.uk

  • 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

  • Fill a textfield with the drop-down list selection

    Day of goo,

    I have a menu drop down and a textfield in a table with one line and an Add button.

    The line is repeatable, now, when I select a value in the drop-down list, say "23" and it fills the textfield say with "Jordan".

    Then I click the addButton to add a new line, now I select '7' in the new drop-down list and its supposed to fill the new textfield with "David Villa,"

    Instead, he replaces what was on the original textfield("Jordan") with David Villa, leaving the new empty textfield.

    Can someone help me please.

    Another thing, I have to select two times for the drop-down list to the fire, why is this?

    Hello

    First thing: I suspect that you have the script to the change event, but use .rawValue for the test. With the drop-down menus, I tend to use the exit and .rawValue event.

    With respect to the textfield, you probably use a too full reference, like "Row1.usersName". If you just use "usersName, for example the name of your textfield, then Acrobat/Reader uses the particular instance of the textfield in the same line as the drop-down list.

    Hope that helps,

    Niall

  • Drop-down list selection

    If someone has been able to successfully get the current selection in a drop-down list?  I have the drop-down list of channels and can change the selection in the Simulator.

    temp3 vartring = myDropDown.selectedItem.toString ();

    does not work.

    However,.

    var temp1:int = myDropDown.selectedIndex;

    correctly return the index of the selected item.

    I feel like I'm missing something obvious here.

    Thanks in advance for any help.

    Hey,.

    You can configure your tabular data provider and then everything just to get the index selected in the selected point drop-down list and then using that call the element of the array. for example, here is a list of colors in a drop-down list:

    var listOfThings:DropDown = new DropDown();
    
    var dp:DataProvider = new DataProvider();
    
    var arr:Array = new Array([{label:'green'},
        {label:'blue'},
        {label:'orange'},
        {label:'red'},
        {label:'yellow'},
        {label:'silver'}] );
    
    dp.setItems(arr);
    
    listOfThings.dataProvider = dp;
    

    now, if you were to get the index selected in the drop-down list item and select the table at this level:

    arr[listOfThings.selectedIndex].label;
    

    This should retrieve the label of the selected item.

  • Help adding textfield with drop-down list selects

    I have a PDF with a drop-down list field called "SoftwareList" with a default value of "Select the software" and a text field called 'SelectedSoftware '. You can freely type in the text field to communicate your needs, or choose the menu drop-down. I want to add in the text field, which is selected in the drop-down list each time. I had the following script to fix this as a custom text field calculation script:

    If (this.getField("SoftwareList").value! = "Select software")

    {

    this.getField("SelectedSoftware").value += this.getField("SoftwareList").value + «»

    }

    The problem I have is that it will continue to add to the text box with everything that was selected last in the drop-down list when you click on other fields in the form, such as check boxes. I tried this put on different actions both at the key sequence in the Properties tab of format, but did not work there. I added the following line, which helped, but it is still a click of the addition until it changes, duplicate the last pick:

    this.getField("SoftwareList").value = "select the software."

    Appreciate help with this.

    I would like to use the script validation custom from the drop-down list. You can use something like this:

    If (event.value! = 'Select Software') this.getField("SelectedSoftware").value += event.value + ",";

    To ensure that the update as soon as a selection is made to check the option to validate the selected value immediately under properties of the menu drop down, tab Options.

  • Several drop-down list selection

    I am newbie on OBIEE. I have a dashboard that has a prompt of commands and a report. On the command prompt, I need supplier a selection to multiple address drop-down list. So I clicked on the available column in the left columns. And I put the control as a multiple selection. When I run the report, the pop-up multiple selection works very well but the result of the report do not seem to take into account what I choose in the multiple selection box. What should I do on the side of the report. I have add this column in the filter and is invited...

    Please notify.

    Hey,.

    To reflect the columns in the report. You must invite these columns in your reports.

    For EXAMPLE: You have created a guest 'Éducation' and gave
    Operator: equivalent in
    Control: Multi Select
    Show: All values (do not check limit here)
    Default: the default values report.

    Save the prompt.

    Now, you have created a report with education, region, Distrinct, column etc...
    In the filter (section Education Say is invited)

    Then, the command prompt will be reflected in the report.

    -If your problem is resolved, Reward Points and close the thread as an answer to help others :)

    Published by: 831909 on March 23, 2012 07:35

  • Best practical Question - update the query (see object) based on the drop-down list selection

    I have a question about the most efficient way to perform the following task:

    I create a page that contains several DVT components to display data based on specific requests.  Top of page I am hoping to have a drop down menu (selectOneChoice) that contains dates different and based on what the user selects (i.e. 2010, 2011, 2012, 2013, etc.), this will update the query in the view object of some (i.s. WHERE Date = '2011', or WHERE Date = 2013"), and then you view the appropriate data in the DVT.  What is the best way to do this - from a point of view bean managed / page, as well as the View object?  Advice/documentation would be appreciated.

    Thank you!

    When you drag the vo executeWithParams one another that will create links for operations such as 'executeWithParams2', 'executeWithParams3 '. On the method that you use to update a view by calling the executeWithParams operation, you call the other operations too.

    Timo

  • 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

  • Can not get a text field to atuo fill based on a drop-down list selection

    I have a drop down box with 3 values that can be selected:

    Dropdown2 is 101-3 subd. A

    101-3 subd. B

    101-3 subd. C

    I'm trying to get a field of text automatically fill based on selection:

    If Dropdown2 = 101-3 subd. A Text4 then = 'a. '.

    If Dropdown2 = 101-3 subd. B then Text4 = 'b. '.

    If Dropdown2 = 101-3 subd. C then Text4 = 'ValueC.

    I tried to create a custom for Text4 calculation script:

    var v = getfiled("Dropdown2").value;

    If (v = "subd 101-3. A") event.value ="A."

    ElseIf (v = "subd 101-3. B") event.value ="B."

    ElseIf (v = "subd 101-3. C') event.value = "ValueC."

    else event.value = "";

    I walked into this script and syntax seems to be OK. (At least for Acrobat XI.  I'm not know programmer and have just enough knowledge to be dangerous).  When I select a value in Dropdown2 nothing happens.  No value appears in Text4.  I checked the "selected value immediately commit" in the Dropdown2 option by google'ing.  I don't understand why the values do not appear.  Any help would be appreciated.

    Thank you

    You made a mistake... The comparison operator is "is" (or ' = '), not of '=', which is used to assign a value.

    So replace all these:

    If (v = "subd 101-3. A")

    To do this:

    If (v is "subd 101-3. A")

  • Drop-down list selects Email recipient on 'submit '.

    I created a drop down menu that links the e-mail addresses for the choice that the end user is in the list of fields. I'm looking for the simplest way to use this choice in conjunction with a form button that should send the completed form, in PDF format, for the recipient of the correct e-mail that has been chosen. Would also like the email with the completed form to joint, to open, allowing the end user to attach additional attachments before sending. Am new to LiveCycleES, but don't know about the extension of the rights on the document for others to access. Any help would be greatly appreciated.

    Best regards, nugget

    That the address that appears is one that is hard coded in the actual e-mail button. There is little additional code to be added... so replace the code that you have with this code:

    If (EmailAddress.rawValue! = null) {}
    Button2.event__click. Submit.Target = ' mailto: ' + EmailAddress.rawValue + '? Subject ="+ Subject.rawValue;
    Button2.execEvent ("Click");
    } else {}
    App.Alert ("Please enter an email address in the Email field");
    }

    Then change the name of e-mail of TextField4 fields [1] to EmailAddress. Now try again. If you want I can attach the modified version of this thread... .but everyone can see it and get it.

    Paul

  • How to drive the content of a text field or table from a drop-down list selection cell?

    Users will choose an option in a menu drop-down. I want their selection to control the contents of the cells in a table or text elsewhere on the form fields.

    For example, 'The coldest season of the year' by selecting 'winter' in the menu drop-down displays in a table cell.

    Thanks in advance for the help.

    Nick

    Hi Nick,

    Here are some examples:

    https://Acrobat.com/#d=pxtis4z3OxCqWxajZwDS2Q

    https://Acrobat.com/#d=20lQl9JfL19aBtbPC1WYbw

    https://Acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A

    If you open these in LC Designer, you can view the script by selecting the menu drop down and looking at the script at the top of the window Editor. If the script editor is a single line, you can drag the lower edge to make it bigger.

    Good luck

    Niall

  • How to make elements visible but inaccessible in a drop-down list

    I have dropdown1 with articles1-3.  I have dropdown2 with 1-10 items.  Item1 selected in dropdown1 I want dropdown2 to display all 10 points, but certain items inaccessible (dimmed) and not selectable.

    (example)

    Item1 = 1 to the [dropdown2] = select

    point 2 of the [dropdown2] = select

    point 3 of the [dropdown2] = select

    point 4 of the unselectable = [dropdown2]

    point 5 of the [dropdown2] = select

    point 6 of the unselectable = [dropdown2]

    and so on.

    I coded dropdown2 to fill based on selected items of dropdown1 but the problem is that the user needs to see options that are not available for selection?

    I am very new to FormCalc & Java any help would be greatly appreciated!  I am using LiveCycle Designer ES 8.2

    With your help, I got it working now.  I played a bit with your example here is your example changed from what I was trying to accomplish... https://DL.dropbox.com/u/12892158/Limit_DDL_Selection.PDF   Thank you for your help.

Maybe you are looking for

  • iPhone disabled

    I forgot my access code, what should I do?

  • Opening new tabs in 3.6.8

    I just updated Firefox 3.6.8 In 3.6.4, when I open a new tab by clicking on a link, the tab would open at the far right of the tab bar. Now, he opens a new tab directly to the tab I currently opened. Is there an option where I can change this back to

  • Is it possible to control the number of items in queue reading

    Writing data in the queue follows the format of (Data length) + data block + (length of the data) + data + (length of the data) + data block When I read the data, need to read the length of the data first, then can read a block of data. Is there any

  • Get the 229771 error code

    I just downloaded NIDAQ902f0.exe and installed.  MAX indicates the version 4.6.1f0. With the help of MAX I have a NI PCI-6731 device with 4 analog output ports (Dev1 ao0-Dev1 ao3). When I start my program and try to create a writing task: Ask the NID

  • error message on Windows XP

    Whenever I boot Windows XP, I get an error message saying: it does not find "C:\Windows\mdede1.dll" what that can do to eliminate this?  FYI, it appeared to start when I installed Verizon Internet high speed and I use the free AVG anti-virus program.