Dropdown selection to make a subform visible

Hi I am trying to work out how to make a subform visible/invisible dependant on the selection made in a previous dropdown box. Any ideas?

Add the following javsscript code in the change event:
var selection = xfa.event.newText;
if(selection == "visible"){
subform.presence = "visible"
else {
subform.presence = "hidden"

Similar Messages

  • How to make a checkbox that makes a subform visible also go to the subform

    Newbie here - no java knowledge. I have a subform that becomes visible when a checkbox is used. How do I make the form go to the subform as it becomes visible? Thanks for your help! RL

    Sorry - I was reading your messages in my email, not on the forum page.
    My original form is very long, with many options on it. When an option is chosen, I have a subform become visible, but the user would have to scroll down to see it. I'm making the form for teens, and want it to be foolproof and bombproof. So I need the selection of a checkbox to take the user directly to the subform. See "What will you be performing?" with vocal, musical theatre, theatre, dance, instrumental checkboxes on the attached form.
    I have been using:
    if (this.rawValue == 1){
            VocalSubformPage2.presence = "visible";
    }else{
            VocalSubformPage2.presence = "hidden";
    event.target.pageNum = 1;
    as suggested by Patrick, but it isn't working consistently. I have a subform for each category as a separate page. The content is positioned to stay on that page, and can't flow into another. Thanks for your help.
    Randee

  • Make subform visible by making a selection in a dropdown

    I am trying to make a subform visible if the user select yes from a dropdown.
    I have the following setup on the form
    Subfom1 -Dropdown with 3 entries, Select, No Yes.
    Subform2 – Text field for users to enter test
    The code I have been trying to use is
    “execEvent("change"); In the Initialize event and in the change event I was using
    if (xfa.event.change == "5") {
        subform2.presence = "visible";
    When I try the form, nothing happens,. There is no errors in the Javascript debugger
    Any ideas would be helpful.
    I am running Adobe LiveCycle Designer 8.05.2073.1.374024
    Any ideas would be helpful
    Chomp

    Thanks Robert;
    I did as you suggested and I still cannot get the field to become visible. I tried a couple of things.
    (1) In the Initialize Event - execEvent("change");
    In the Change Event - if (this.rawValue == "1") {
    why_subform.presence = "visible";
    The subform did not become visible nor was there an error in the javascript debugger
    (2) Took execEvent("change"); out of the Initialize Event.
    In the Change Event - if (this.rawValue == "1") {
    why_subform.presence = "visible";
    The subform did not become visible nor was there an error in the javascript debugger
    Initialize Event blank
    Added to the Change Event
    if (this.rawValue == "1") {
        why_subform.presence = "hidden";
    if (this.rawValue == "2") {
        why_subform.presence = "visible";
    The subform did not become visible nor was there an error in the javascript debugger
    (3) Added execEvent("change"); to the Initialize Event
    The subform did not become visible nor was there an error in the javascript debugger
    Preference defaults are set to – Preview = Interactive Form
                                                     XDP Preview Format – Adobe 8 (Dynamic) XML Form

  • Button makes subform visible, then adds another instance

    Hello,
    I have a button which makes a subform visible. That is working fine.
    I'd like the button when clicked a second time to add another instance of the same subform. Is this possible? I have no idea how to begin with the JavaScript for this and would appreciate help.
    Thanks in advance,
    MDawn

    Instead of making the subform visible and then adding instances you can do it just using instances then the button is doing the same thing.
    To "hide" the subform using instances, make sure under Binding that the Min Count is clicked off and the Inititial Count is set to 0 (zero) - your subform will now be hidden by default.
    Change the code you have showing the subform to use addInstance() instead of presence, using the underscore shortcut for the Instance Manager (you have to use the underscore method because the instance doesn't exist yet):
    _hiddenSubform.addInstance(true);
    If you remove instances back to zero then the subform will go away again. Doing it this way also has the advantage of resetting all the data in the subform.

  • Make subform visible, content doesn't show

    I have a script that's supposed to make subforms visible based on the selection in 3 DDLs. The script seems to work sort of. The space is there but the actual content of the subform is not visible.
    The subforms are set to Hidden.
    The script is set in the exit event of the third DDL.
    Thanks,
    MDawn

    Hi Margaret,
    In the windsNtwkAccess exit event code at line 298  you need to change
    else if (v1 = '2')
         to
    else if (v1 == '2')
    That is change the equals to a double equals.
    You also have code in the form1.page4.eitEquipment ready:layout event and form1.page4 ready:layout events that seem to duplicate this code and should be removed.
    Regards
    Bruce

  • Multi subforms on 1 page - make 1 subform hidden

    Good Day
    I would be a wee bit new at this so it might sound like a silly question.
    I have designed a form that is approx 3 pages in length when all subforms are visable. When I tried to hide 1 subform on a page (using a check box) the whole page (3 subforms) became hidden. Is there a way to only hide or make visable 1 subform if there are multi subforms on a single page?
    Regards
    Don

    Thanks Paul;
    The code I am using on the Checkbox is as follows
    if (CheckBox1.rawValue == true)
    Subform2.presence = "visible";
    else
    Subform2.presence = "hidden";
    There are a 4 checkboxes that depending if they are selected will make visable the corresponding subform.
    Regards
    Don

  • Event for dropdown selection

    Hi.
    I am working on CRM 2007 icwebclient. My requirement is for BP creation either individual or organisation depending on ROLE select mandatory fields are changed.
    If role 'Prospect' is selected then few fields are mandatory or if 'sold-to-party' is selected more fields are madatory..
    Now which event is working behind this dropdown selection. where i have to write my code. How to set fields 'mandatory' at design time. soon reply would be appreciate.

    Hello,
    as this really seems to be a big Issue for people. Thought as developers you might explore my hints on your own.
    For switching the configuration:
    Implement the P-Getter for the attribute on the context node with the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'my_event'.
      endcase
    This will trigger a roundtrip. We do not need to handle the event.
    In your view controller implementation class redefine the method DO_CONFIG_DETERMINATION:
    METHOD do_config_determination.
    * Switch configuration that is used based on field value.
      DATA:
        lv_value         TYPE              char2,
        lv_object_type      TYPE              bsp_dlc_object_type       VALUE '<DEFAULT>',
        lv_object_subtype   TYPE              BSP_DLC_OBJECT_SUB_TYPE   value '<DEFAULT>',
        lr_node        TYPE REF TO       if_bol_bo_property_access.
      CALL METHOD super->do_config_determination
        EXPORTING
          iv_first_time = abap_false.
      lr_node = typed_context->some_node->collection_wrapper->get_current( ).
      CHECK lr_node IS BOUND.
      lr_node->get_property_as_value(
        EXPORTING
          iv_attr_name = 'SOME_ATTRIBUTE'
        IMPORTING
          ev_result    = lv_value ).
      lv_object_type = 'MY_UI_OBJECT_TYPE'.
      CASE lv_value .
        WHEN 'SOME_VALUE1'.
          lv_object_subtype = 'JIMBOB'.
        WHEN 'SOME_VALUE2'.
          lv_object_subtype = 'BUBBA'.
      ENDCASE.
      me->set_config_keys( iv_object_type          = lv_object_type
                           iv_object_sub_type      = lv_object_subtype
                           iv_propagate_2_children = abap_true ).
    ENDMETHOD.
    Just paste the above coding into the method.
    What it does:
    1. Get the value you want to check from one of the context nodes.
    2. Switch the UI Object type (Yes you have to define it in customizing)
    3. Switch the UI Sub Object type on base of the field value. (Yes you have to define your own sub object type, this is done via a class that is assigned to your UI Object type in customizing)
    For the other solution: As mentioned I have not tried it myself.
    The variable on the view controller I am talking about is CONFIGURATION_DESCR of interface IF_BSP_DLC_CONFIGURATION. It has got a method GET_CONFIG_DATA that will give you the XML stream and a method SET_CONFIG_DATA. Putting the changed XML back.
    If you had done a were used list for at least one of these methods you would have seen how SAP uses them.
    One example: CL_BSP_WD_OVW_VIEWSET->DO_INIT_CONFIG() however this will not help you on your problem.
    I know there is a method that will decode the XML stream in the single fields with their properties and there is also a counter part to it. I am afraid that many people will use it to bypass the configurations. This will make it very hard to debug the coding. Thus I will not name the class/method here!
    For the sake of maintainability please stick to the first method.
    I have seen people getting the XML and then hardcoding another part into it. Then someone changed the config and an error occurs. You try to find out why, but the original developer is no longer there and has not documented anything...
    cheers Carsten

  • Can you explain me clearly how to make company code visible in cost center

    can you explain me clearly how to make company code visible in cost center master data using tcode kmlv

    Hi,
    There is no way to activate the company code field. If your Controlling Area and Company Code have one to one Assignment, then Company code is defaulted from the Controlling Area. However, if multiple Company Codes are assigned to one Controlling Area, then Company Code becomes a mandatory field in the Cost Center master data
    Also, in case you have multiple company codes assigned to one controlling area, please check the setting of the Controlling Area in Configuration and see if have selected "Cross Company Code Cost Accounting" . Also, check if you have assigned all the company codes to the controlling area
    Regards
    Mahendra

  • Dropdown Selection : Populate Tableview

    Hi all,
               We have a requirement, in which we have to make a component which is divided into 2 sections.
    Section 1: Tableview is populated based on user login
      (done)
    Section 2: Dropdown which has 2 values
                    i. My opportunities
    on selecting this, a tableview should be populated displaying all oppts which are owned by the log in user
                   ii. Reportee Names
    on selecting this, it displays all the people reporting to the login user, and on selecting any of them should again display opportunities of that user.
      If anyone has worked upon populating tableview in a component depending upon dropdown values, please help.
         Posting Example code would be of greater help.
    thanks in advance,
    Rohit
    Edited by: Rohit Khetarpal on Oct 17, 2008 8:08 AM

    Solved by triggering event on dropdown selection
       IF iv_property =  if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'DDLB_CLICK'.
       ENDIF.
    and handling in do handle event.

  • Is it possibe to make a channel visible only to some users?

    Hi,
    I am using iPS3.0SP3a, I have LDAP authentication enabled and I want some of the JSP provider channels that I created to be visible to only some users and not all. For example: the admin channel, this channel must be visible only to the users belonging to the admin group on the ldap server.
    Any help is certainly appreciated.
    Thanks
    Sahadev

    Yes, it is possible to make the channel visible to some users alone. Though the authentication is done in LDAP, the user profiles are maintained within Portal.
    1) To remove the channels for particular users, we can put them in a role say test_role. Now goto Admin Console | Manage Domains | Domain_Name | test_role | open 'Applications' key and click 'Desktop'.
    2) Now choose the channel you want to remove, from the 'Selected Channel' lists and 'delete'. Apply the changes to all sub-roles and submit.
    3) Restart the Server for the changes to take effect.
    Similarly we can do this setting for individual users as well. Hope this helps.
    Thanks,
    Raj_indts
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • How to make all columns visible in an interactive report by default

    Hello All,
    I have an interactive report with the first column is visible and the rest are hidden by default. Is there any way that i can make them all visible by default so the users do not have to go into actions to display them in report?
    Thank you
    Sezer

    Login as developer > run the interactive report > actions > select all columns you want
    Now got to actions > save > default > primary > apply
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDFDFJA

  • How do you make invisible folders visible

    how do you make invisible folders visible? My hard drive icon will not show up? I did not set-up this computer.

    The instructions I provided have nothing to do with Time Machine. Did you try what I suggested? If you select the "alias" file then CTRL- or RIGHT-click and select Show Original in the context menu.
    Maybe it would be helpful if you were to provide a more complete description of this issue.

  • Problem with a script making subform visible

    Hello
    I have a form with 5 radio buttons. Two of the radio buttons, values 3 and 5 need to make a hidden subform visible. All other values leave the subform hidden. Here is my script:
    if (this.rawValue == '1') {
    page1.deliveryInformation.flowed.presence = "hidden";
    if (this.rawValue == '2') {
    page1.deliveryInformation.flowed.presence = "hidden";
    if (this.rawValue == '3') {
    page1.deliveryInformation.flowed.presence = "visible";
    if (this.rawValue == '4') {
    page1.deliveryInformation.flowed.presence = "hidden";
    if (this.rawValue == '5') {
    page1.deliveryInformation.flowed.presence = "visible";
    else {
    page1.deliveryInformation.flowed.presence = "hidden";
    Value 3 is not working. All other values work as expected. I've been looking at this script for over an hour and can't figure out why it isn't working. Any help would be appreciated.
    Thanks,
    MDawn

    The issue is with the last else part.
    Either place the conditions in
         if(){
         elseif(){
         else{
    OR
    use the switch case as below.
    switch (this.rawValue)
    case "1":
    page1.deliveryInformation.flowed.presence = "hidden";
    break;
    case "2":
    page1.deliveryInformation.flowed.presence = "hidden";
    break;
    case "3":
    page1.deliveryInformation.flowed.presence = "visible";
    break;
    case "4":
    page1.deliveryInformation.flowed.presence = "hidden";
    break;
    case "5":
    page1.deliveryInformation.flowed.presence = "visible";
    break;
    default:
    page1.deliveryInformation.flowed.presence = "hidden";
    Thanks
    Srini

  • How can I make the points visible in Graph

    HI,
    I have a graph which plots certain points. I want the graph to also make the points visible - not just the lines between the points.
    How can I do that
    Thanks

    Right mouse on the graph and select common plots. Under there you can select how you want to display your information. After selecting the display with points, you can go further down the list to Point Style to choose circles,squares etc....

  • Make hidden OU visible

    Hey guys,
    I have a weird problem with a hidden OU. I have to select this OU as target in a third part app (Enterprise Vault). The account which I use for that has the general rights to list and to read everything within the domain and even this special OU.
    It is interesting, because I only can see the OU if I tick "Advanced features" in ADUC.
    I guess there is a further trigger/attribute which is causing that. I want to make the OU visible without ticking "Advanced features" so that I can hopefully select it in Enterprise Vault.
    Thanks in advance.
    Cheers,
    Chris

    Hi,
    Which 'OU' do you mean? Does it an OU that you created manually? As far as I know, if we use general way to create an OU, we should see it without ticking Advanced Features.
    And like System, ForeignSecurityPrincipals are not OUs, they are containers, and we should tick Advanced features to see them.
    In addition, if this is an OU that you manually created, how did you hide it, did you follow the below link:
    http://networkadminkb.com/KB/a23/how-to-hide-or-secure-objects-in-active-directory.aspx
    Regards,
    Yan Li
    Regards, Yan Li

Maybe you are looking for

  • How do i find out my iPhone's original purchase date?

    I bought it used from eBay and don't know when the owner bought it. It has warranty util July 21 and i want to extend it, so i want to buy AppleCare. One AppleCare it says it will extend the warranty for two year since the original purchase date. So

  • Display Payment terms in Bid invitation.

    Hi all, I want to display a standard field called  BBP_PDS_BID_HEADER_D-PMNTTRMS (payment terms key) in the BID header screen, i found the sap note 458591 that tells you how to create/display customer fields, but i don't know if this applies also to

  • LSMW field with 5 decimal points

    Hi All, I need to pass a field in the LSMW with 5 decimal points. we cannot pass the data type as "PAC5". can any one suggest how this can be done in LSMW. Also, I am passing the currency key as USDN in the LSMW using Idoc method. But it is taking on

  • HT4587 Where is the Music Tab in AirPort Utility? I am using 2TB Time Capsule

    I can't fond the Music Tab as specified in this article - "Ensure that "Enable AirPlay/AirTunes" is checked in the AirPort Utility Music tab."

  • Transferr Itunes from Macbook to Mac where Mac already as an Itunes library

    The Mac I am writing on was filled with Itunes (some bought from Istore, some ripped from my CDs) a couple of years back. It was then not used for 2 years as it was sent to storage. In the meantime I bought a Macbook and also loaded some Itunes onto