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

}

Tags: Adobe LiveCycle

Similar Questions

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

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

  • Hide several pages unless the drop-down list is selected

    Hello

    I have a 4-page form that I need to be able to hide 3 of 4 pages until a selection is made from a drop-down list on the first page box. So I have, for example, the pages marked:

    Page 1

    Page 2

    Page 3

    Page 4

    I have a drop down list which has

    Page 2

    Page 3

    Page 4

    for options and if no selection is made only Page 1, will be visible. If the selection is Page 2, I wish that all pages except page 2 to be hidden and only see page 2, did not 4 pages show and only show Page 2 fields.

    Does anyone know how to do this?

    Thanks in advance for any idea!

    The only downside to the activation of your condition is that the first page of the form can not be deleted. If you set page 1 "Hidden" will be hidden objects on the page, but the page itself will remain in the form that is displayed as a blank page.

    Attached shows a form with page 0-4 (5 pages). A drop down menu on page 0 and it controls the rendering of pages 1-4.

    Steve

  • 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

  • Hide the fields to add fields drop-down list in the advanced search mode.

    On the drop-down list to add fields in the field of the advanced search displayed by an af:query, is there a way to hide some of the attributes? He seems to show all the attributes of the default VO.

    The fields must be visible on other pages that use the VO. Table Panel and search queries will only to display a subset of the fields in the VO.

    Assigning to the attribute Display tip to hide will not do; at least this seems to be the case, because if I do that, then, the field is not available on the data control to be placed on other pages.

    I guess I could create a separate VO just to the search page; but I try to avoid this, it invites excessive maintenance as the system grows. If no indication on how to hide a field VO on add fields while leaving the field to be displayed on other pages would be appreciated.

    Versions: JDeveloper 11.1.1.4, ADF business 11.1.1.59.23 components.

    Thank you.

    I wrote a blog post on this subject and a sample of http://tompeez.wordpress.com/2012/01/06/jdev-afquery-hide-some-attributes-from-query-panel-but-show-them-in-the-result-table/ here

    Timo

  • Delet several addresses in the drop-down list on the e-mail page

    on the page of the mail, the box where you put the address in I put the first letter of the address and a drop-down list box appears with several address of the person even all but 1 is false. I went to the address book, and there is only one address of this place.
    How can I remove all the wrong address in the drop-down list?
    Thank you
    Herbalifeman

    Look for these wrong email addresses in your address book and remove them.
    Make sure to look in all address books you may have, including the "collected addresses".

  • 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

  • Several lines in a drop-down list box

    Hello

    I'm trying to create a PDF for the purposes of the information and then print it.  I have very limited skills with Acrobat 8, basically what I have gotten myself and I encountered a problem with my drop-down list boxes.  Some of the sentences that I put in the boxes are too long and I have not been able to figure out how to wrap the text, or use multiple lines.  I need all my data to display.  Can someone explain, in simple terms, if possible, how this can be accomplished, or provide an alternative.  I have read several posts but were not able to work where to start with it.  Any help would be appreciated.  Thank you!

    I've implemented a small sample which should help you get started: https://acrobat.com/#d=R6J3Vsf4iJjsfE1tiNsVMg

    All the code is in the event of the button the mouse upwards. All you have to do is change the text for each item in the 'items' array to match the selections you want. Add as many items as you need. If you get stuck, post again.

  • How to select several channels in the drop-down list for switching?

    Hello

    I use TS2015 SP1 and SwitchExec 2015. I created a list of routes that are now visible in the properties of the step "Activation" in the drop-down list field "Way (s) to connect".

    Here, I can click on an item in the list to select it.

    What can I do to select a second item in the drop-down list?

    It seems that I have to write the second element after the decimal point manually. Is this correct? Or y at - it something to select back in the menu drop-down?

    Thanks for help

    My bad!

    I wanted to say: «M2_C6R6 and M2_C7R7»

  • You can choose several items in a drop-down list?

    I was asked if it is possible to make a drop-down list in which two elements could be selected?  (as you want to choose colors gray and blue) Or it is limited to one per drop of water down)

    If so, how to set the drop-down for this button?

    I'm a newbie, be gentle.  Thank you.

    No, it is not possible with a drop-down list. You can do this by using a list box

    field, however.

    Tuesday, December 1, 2015 to 23:01, carlas70158474, [email protected]>

  • 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

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

  • 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

Maybe you are looking for