Hide the subform when drop-down menu is null

I'm doing a subform 'hidden' when a drop-down list object is null and 'visible' when the drop is not null. I use the following script:

If (this.rawValue = null) {}

xfa.resolveNode ("Subform3. #subform. . GroupLeader presence') = 'hidden ';

}

else {}

xfa.resolveNode ("Subform3. #subform. . GroupLeader presence') = 'visible ';

}

Script does not work. Is it wrong or have I got it in the case of bad? (Form ready)

Thank you

Hello

To start I place this script to the output of the dropdown event.

You also have a subform without name, which requires you to solve the node. This is inefficient, so if you name the subform, you will be able to use a simple reference (see: http://assure.ly/kUP02y).

The main problem with the script is that when you test equality (in the if/else statement), you must use a double equals sign (==).

So, if you have renamed the subform "Subform4:, the script would become:

if (this.rawValue == null) {
     Subform3.Subform4.GroupLeader.presence = "hidden";
}
else {
     Subform3.Subform4.GroupLeader.presence = "visible";
}

Hope that helps,

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Some element of the third level drop-down Menu is invisible

    APEX 4.2

    Oracle 11i

    area type: list

    list template: drop-down menu

    Requirement: I created the menu list with level 3 model, but found that some element of the third level is invisible, sometimes, someone has experienced this problem?

    How can I show the whole issue?

    Better compliance

    Yong Huang wrote:

    Thank you very much, you are right, it worked when I changed the target type of URL without a target.

    But the new problem is that cannot save changes implemented which target URL, it was recovered on the page target type in the application to the next time. How do I do? Like a menu, I have to put the page number to the target.

    and why target page type the application cannot show normally?

    This is because (at least in the example you provided) to two factors:

    • A 'feature' the theme 21 Pull Down Menu model list, which seems to be so designed as not to display a link to the current page. The current definition of model sublist will render an image of separator rather than the list entry/link:

    • Your entries of the list all link to the same page.

    So to determine which model of list item to apply using the list input parameter current that current page is the target by default, APEX motor sees all of the entries in the form of links to the current page and presents them by using the current model sublist list item template as a separator.

    All of your entries of the list really related to the same page? If so, why is this? What you trying to do? There may be other ways to address the issue that you have not considered.

    If you really must use a dropdown menu with multiple links to the same page here, then there are two options:

    • Continue to use the list template Pull Down Menu provided, but put in place a framework of Expression PL/SQL or SQL query to determine the current list entry.
    • Create a copy of the Pull Down Menu model list and change the current model sublist definition so that the list entry appears in fact.
  • Label of the locale selection Drop Down Menu

    Hello everyone, I am trying to familiarize themselves with the location with flex, I created my own files in use, files (.properties) and a simple application that works.  It uses a dropdownlist control to allow the user to choose what language to see.

    Here is my code

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" viewSourceURL = "srcview/index.html" >
    < fx:Declarations >
    < fx:Date id = "currentDate" / >
    < mx:DateFormatter id = "df" / >
    < s:ArrayList id = "local" >
    en_US < fx:String > < / fx:String >
    < fx:String > en_US < / fx:String >
    < / s:ArrayList >
    < / fx:Declarations >
    < fx:Style >
    @namespace s "library://ns.adobe.com/flex/spark";
    s | Label {make-size: 18 ;}}
    < / fx:Style >
    < fx:Metadata >
    [ResourceBundle ("customStrings")]
    < / fx:Metadata >
    < fx:Script >
    <! [CDATA]
    Import spark.events.IndexChangeEvent;

    protected function dropdownlist1_changeHandler(event:IndexChangeEvent):void
    {
    resourceManager.localeChain = [(event.newIndex) locales.getItemAt];
    dateLabel.executeBindings ();
    }
    []] >
    < / fx:Script >
    < s:layout >
    < s:VerticalLayout horizontalAlign = "center" paddingTop = "20" / >
    < / s:layout >
    < s:DropDownList dataProvider = "{local}.
    change = "dropdownlist1_changeHandler (Event)" "
    selectedIndex = "0" / >
    < s:Label id = "dateLabel".
    Text = "{resourceManager.GetString ('customStrings', 'todayItIs')} {df.format (currentDate)}" / >
    < s:Label text = "{resourceManager.getString ('customStrings', 'helloWorld')}" / >
    < s:BitmapImage source = "{resourceManager.getClass ('customStrings', 'helloFlag')}" / >
    < / s:Application >

    The files used at present are "en_US" and "en_US".  The drop down menu filled with a table

    < s:ArrayList id = "local" >
    en_US < fx:String > < / fx:String >
    < fx:String > en_US < / fx:String >
    < / s:ArrayList >

    But in my drop-down list, it lists en_US and fr_FR, how do I change it to English and the French?  While retaining the ability to share files, the lang

    Thank you!

    You need to create something like that

    ARR:ArrayCollection = [{id: 'en_US', Label: 'English'}, {id: 'en_US', Label: 'French'}]

    so, you can use internally as locale en_US but dropdown will show English...

    I hope you got my point...

    If this post answers your question or assistance, please mark it as such.

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

  • 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

  • OfficeJet Pro 8600 appears twice in the selection of drop down menu printer with each of the different names.

    Hello!

    I recently acquired an Officejet Pro 8600 and immediately connected to my network wireless as stated in the manual. No other type of connection has been used beforehand and the operating system is Windows 7 64 bit.

    After that the installation of the printer driver appears twice each time that a program asks me to select a printer from the drop of the printing devices in the typical menu of preparation of printing.

    There is an entry for "Officejet Pro 8600 (network)" and something in the sense of 'HP95CDN' (Officejet Pro 8600). I can't remember the exact names off the top of my head, but it is the name of the printer with the 'network' in brackets in one case and a kind of shortcut ID printer with full name in parentheses in the other case.

    According to the program, one of the options gives the desired impression while the other simply causes a queue of indelible impression for the name of the unit in question that is stuck to a few KB of data transmission.

    Usually printing works with the device with the identification of the printer in its name, but I recently had a case where with LibreOffice printing only works with the other choice.

    Can someone explain to me exactly means?

    See you soon,.

    Pete

    Direct entry Wireless will be visible under menu so direct wireless is on... However, since you are able to print another icon (not the network icon) I assume direct wireless is off coz you will not be able to print from wireless directly on the printer if you are connected to the router.

    I believe that the icon of the printer (not the network icon) has a port WSD assigned and is automatically detected by the operating system and installed.

    Go to service window and check if you have any input that says function Discovery Provider Host and see if it is started. Try to stop the service, and remove the icon of the printer (not the network icon) in the print server properties.

    Restart the PC and check if the icon comes back or try to uninstall and reinstall

    Let us know the result

  • Drop-down menu used with anchor on the long table of data links

    Hello

    I have a page on our site where we used a drop shape with anchor tags to let the visitor easy access to specific locations within a long table of data on the same page. Recently, I noticed that the anchors are walking around is no longer the tags in the page but only the beginning of the table anyway. I don't know if over time a few additional codes may have been added to the page that is not in conflict with the form of drop down menu, or if it's something else. I've been agonizing about this for awhile now and unable to fix. I'm hoping a new set of eyes will revisit the issue. the url is http://www.vectron.com/products/saw/saw.htm

    Thank you

    Looks like there are a good number of errors html on this page, some of them have to do with using the code of the named anchor.

    Looks like you have placed the anchors between the openingand the child of the opening. Content cannot go there, move them in theTags and see if that helps.

    It could be something else however, html errors are one of the main causes of the problems of display/functionality. Visit the validator to http://validator.w3.org to clean up your errors. If you work with the code clean and correctly positioned anchors, after return and we can take a closer look.

  • How can I open Web sites that I put in the drop-down menu when I click on the blue arrow to the menu drop-down

    I have windows XP. I use msn.com for my homepage. I entered the sites I want to go to every day. These sites are in the drop-down menu when I click on the blue arrow down. When I click on any one of these sites, they are not open. What can I do to fix this.

    Your user agent shows you are running Firefox in compatibility mode for Windows 98 (NT 4.10).

    • User Agent: Mozilla/5.0 (Windows NT 4.10; rv:37.0) Gecko/20100101 Firefox/37.0

    Make sure that you are not Firefox running in compatibility mode.
    You can open the properties of the desktop Firefox shortcut via the context menu and check under the tab "compatibility".
    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

  • using Firefox 11.0 when trying to 'bookmark this page' in the bookmarks drop-down menu at the top of the browser bookmark pop-up window, but it disappears when I move my mouse to the bookmark window

    using Firefox 11.0 on Windows 7 prof 64 bit, when trying to 'bookmark this page' in the bookmarks drop-down menu at the top of the browser bookmark pop-up window. When I move my mouse over the bookmark pop-up window to change the directory where you will store the bookmark, it disappears before I can do something? If I move my mouse near the yellow star on the right side of the window to the url, the menu bookmark can appear again, but it disappears when I move my mouse over it?

    Hello!

    We have seen similar problems in the past. Read this 2-wire and let me know if they help you:

    https://support.Mozilla.org/en-us/questions/899098
    https://support.Mozilla.org/en-us/questions/850203

    Good luck
    Ibai

  • I have a new MacBook Pro 13 "." When you click on almost ANYTHING, I get a drop-down menu, rather than the simple task. This includes a link to closing a window, writing a message of openness. Whatever it is. I've updated to 10.11.2.

    I have a new MacBook Pro 13 "." When you click on almost ANYTHING, I get a drop-down menu, rather than the simple task. This includes a link to closing a window, writing a message of openness. Nothing, including the drafting of this issue. A screenshot is included. I've updated to 10.11.2.

    Thank you!

    Bill Koechling

    Is it possible that you accidentally tap the touchpad with 2 fingers?

    Try to go to the preferences system-> Trackpad-> point & click and disable the "Secondary click" item Or change one option other than water from the tap 2 fingers.

  • I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global KMs are no

    I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global not supposed to KMs the listed here?

    Hello

    You have imported the whole CKM in modules of knowledge?

    If not, import ckm and do it.

    Kind regards

    Gangareddy.k

  • When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the export me

    When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the box menu to export. When I click on "Export" the image exports WITHOUT my watermark. Help, please. As I did about everything that has been suggested in this forum and I still have this problem.

    I saw that too. For now, the workaround is that if you select 'Edit watermark,' when you are done editing be sure to reselect the same watermark. If you do not, the watermark menu will be empty.

    It seems to be a known bug that occurs only in the current version. If all goes well, it can be fixed in the next update. There is a page for her on the Photoshop/Lightroom Feedback site. I've added my vote to the page:

    LIGHTROOM CC - watermark on the question of export

  • When I click on a drop down menu, my options open to the left.  They used to open to the right, how to change this back to be able to open them to the right?

    When I click on a drop down menu, my options open to the left.  They used to open to the right, how to change this back to be able to open them to the right?

    Which is caused by a windows setting.

    http://timsneath.com/Windows-10-menu-alignment/

  • Drop-down menu does not when the navigation bar collapses in rocker

    Hi all

    I use 3 "bootstrap" on the site below and I have some questions when the navigation bar collapses in rocking, as it seems to stop the drop down menus to work. When you tap or click the drop-down menus, the menu closes just, once again.

    Can someone tell me please on this?

    http://www.clockdoctors.co.UK/test/index.html

    I apologize to this topic. I didn't see that earlier post, I obviously had a blond moment.

    OK, so I think that I fixed it!

    I first tried to remove the script ' ' to see what would happen. Which translates to the stop of the page class 'scrolling' to work, but then allows the drop-down menu to work as it should, as you say.

    I then put this script, but removed this piece of code in the file "agency.js".

    Close the sensitive Menu on the Menu, click on item

    $('.navbar-effondrement_ul_li_a').click (function () {}

    $('.navbar-toggle:visible').click ();

    });

    and now it works fine!

  • Drop-down menu is hidden behind the elements

    Hello

    I have a right to 2 containers after another. Drop-down menu is in the first. When I want something to choose in the drop-down menu, he hides behind the elements in the second container.  How can I make this drop in the front, when the seecting elements?

    In my application, I also noticed that when I didn't use a drop-down list ScrollView did disappear after the elements below the drop-down list. Then when I used a ScrollView around all elements, it has been resolved.

    A drop-down list in cascades infact do not come on the top items. It expanded just himself and all the elements under the menu drop-down get pushed down. When the bottom is reached, items below, that the drop cannot be pushed more, so the drop-down list will appear behind items.

    When you use a scrollview, the items in the drop-down list may get pushed too far below is necessary because the window is not limited to the screen.

    I hope that was a little bit useful.

Maybe you are looking for

  • Bad old Firefox version 3.6 shows to the internet while using the last version 17

    I use Firefox latest version 17 but on the internet it tells me that I would use Firefox 3.6.My PC is an Intel Duo Core processor of 2007 on Windows XP Service Pack 3.How is this possible and how to solve this problem? Thank you

  • AC100 - the process android.process.acore has stopped unexpectedly

    Our AC100 suffers from frequent and annoying messages: the process android.process.acore has stopped unexpectedly (well it is said in Dutch, so I hope that the translation is good). After googeling I found many people with the same problems (but for

  • Usb 2.0 PCMCIA on my Satellite 5100 503 problem

    I have a 5100-503 Satellite laptop, now I bought a PCMCIA USB 2.0 for a 60 GB external hard drive. The problem is that:a key memory work correctly with the pcmcia carddrive hard work slow but with usb 1.1hard drive is not recognized by the pcmcia car

  • "err 06.

    I have an EOS 40 d (oldie but goodie). Sometimes camera will not turn on (power off switch to it), even with a freshly charged battery. When you turn it on, the camera shows 06 ERR in cleaning sensor unit, and I can't use the camera at all. I could f

  • HP dv7-1232nr with an AMD Turion x 2 Windows 7. I wanted to speed up

    I have a HP dv7-1232nr with an AMD Turion x 2 Windows 7.  I wanted to speed up and watched the Kinston Digital 120 GB ssdnow v300 sata 3 2.5 it will be compatible?