Embedded Checkboxes under Checkboxes?

In a PDF form I'm creating, there are a number of checkboxes.  So far, so good.  Once you click a checkbox, I want to have some "sub" boxes open up to check. Similar to this:
I own a pet.
It's a cat.
It's a dog.
I don't want the person responding to be able to click "It's a cat" before clicking "I own a pet." Only after clicking "I own a pet" should they be able to click one of the two options.
Make sense?  I think I do this with a list box, but not sure.  I've checked the Help feature, but couldn't find the information I need.  Nowhere does it tell you how to set up a list box or what it would look like when you're done.
Help?

A list box does not work that way. You can individual check boxes, but you have to include a JavaScript in the mouse p event of the first one. The script would activate the dependant check boxes if the first one is selected and disable them if not. It would look something like:
// Mouse Up script for check box
(function () {
    // Get the value of this check box
    var v = event.target.value;
    // Get references to the other check boxes
    var f1 = getField("cbDog");
    var f2 = getfield("cbCat");
    // Reset the other check boxes
    f1.value = "Off";
    f2.value = "Off";
    // If this check box is selected, activate the other check boxes
    if (v !== "Off") {
        f1.display = display.visible;
        f2.display = display.visible;
    } else {  // deactivate the other check boxes
        f1.display = display.hidden;
        f2.display = display.hidden;
If you don't want to hide the field but just make it so the user cannot select them, set the "readonly" property instead. For example:
f1.readonly = true;
f2.readonly = true;
Edited to correct a typo.

Similar Messages

  • Using an embedded driver instead of client, and refreshing JList

    I am finishing up a simple database interface program that I need to do in order to graduate. There are a couple issues I need to address.
    1. This program is meant to be on one computer with one connection to a database. Currently, when I build the program and run the .jar file, it will not work unless I have manually started the server in Netbeans. Once the server is on, it works like a champ. But since I have to send this to my professor it must work without him doing any additional setup. For this I figured I could use the embeddedDriver, but unfortantely I cant get that to work.
    In netbeans I can right click on the main database icon and select "New Connection" and i have the option of choosing the embedded driver yet when i put the database name in and the user and password it gives me the
    error: "Unable to add connection. Cannot establish a connection to jdbc:derby:MaxxTrax using org.apache.derby.jdbc.EmbeddedDriver (Database 'MaxxTrax' not found).
    Why is it that I can use the client driver without a problem yet not the embedded one? And if I cant use the embedded one, how can I set up the client driver so it will automatically start the server (does the end user need to have the server installed or will the clean and build do that)?
    2. Using the netbeans gui builder, i created a jList that I bound to my database's name query. I then have multiple textFields that i bound to whatever jList selection there is and tell it to update with the specified data. My problem is, that I cannot get the jList to "refresh". Right now when I add somebody to the database it visually writes over another persons record, but doesn't actually delete record. So if i could just figure out how to make it look at the database again I could do it automatically after entering in a new record. I've tried nameList.validate(), updateUI() and even tried to copy the ide generated code that actually binds the data but no go.
    Once I get these two little things taken care of I am done!! Please help, its greatly appreciated.

    I'm not getting much help out there.....anyone??
    I need to make the database seem invisible to the end user application.
    When I try to use an embedded driver I keep getting errors. In netbeans, I can see the "Java DB(Embedded)" link under drivers, and when I hit connect using.. I input all the correct data and it gives me the following error:
    Error: Unable to add connection. Cannot establish a connection to jdbc:derby:MaxxTrax using org.apache.derby.jdbc.EmbeddedDriver (Database 'MaxxTrax' not found).
    Under the Database setting the pointer for the java db installation and database location are correct. Why can't I connect using the embedded driver, cause using that would make my life so much easier for a single application.

  • Embedded OC4J Server - Turn off BC4J debugging

    Hi all,
    I am just switching over from Eclipse(Rational RAD) to JDeveloper and using BC4J. I am struggling a bit with the embedded server under 10.1.2. The console messages roll off the top. Argh.. I want to shut down as much unnecessary logging as possible. BC4J put MANY messages out there. I see a reference to adding -Djbo.debugoutput to the start command in order to turn off the debugging messages. I cannot find where the embedded server is started. It is NOT started from C:\jdev1012\jdev\bin\start-oc4j.bat. Can anyone help with this?
    Thanks,
    --Amy Smith                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Only reason for 10.1.2 is that I just joined the company 6 weeks ago and they had not upgraded to 10.1.3. I very much want to do that but was left with some work that was overdue and can't take the time right now as I understand there are some differences that may make migration difficult...
    Sigh ... I am missing IDE functionality from Eclipse that is in 10.1.3.
    ...Thanks for the help
    ---Amy

  • Embedded Ogg Theora

    Hi everybody,
    I'd like to use embedded videos under Linux (Debian 4.0). I created an Ogg Theora movie which plays fine in RealPlayer 10.0.9.809. When embedding it in a pdf using the movie15 latex-package (mimetype=video/ogg, externalplayer=false, inline=true) and trying to play the movie in AdobeReader 8.1.2, I get the message "The media requires an additional player...". In Preferences/Multimedia, RealOne Player is selected.
    So the overall questions obviously is why it's not working.
    But I'd also like to understand how the Reader decides which player to open. My guess was mailcap, so I added video/ogg to ~/.mailcap but that didn't change anything.
    Thanks for your help,
    -Patrick

    Hi Varun,
    thanks for the file. It worked indeed under Linux but strangely enough not under Windows. We now found out that under Windows it does not work with RealPlayer 11, but only with RealPlayer 10.5.
    But now we have an embedded movie file playing under XP and Linux, thus justifying somehow the "portable" in PDF ;-)
    Thanks!
    Just out of curiosity:
    * Is there a rough estimate on when a new release supporting the movie15-latex-package will appear?
    * RealPlayer 11 support Windows Media even under Linux. Will this next release of the Reader also support embedded wmv under Linux?
    Regards,
    -Patrick

  • Flash wont play embedded videos only on some accounts

    Here is my system and software configuration.  Windows7 -  IE8 32 bit -- latest Flash version.  Flash plays embedded videos under administrator account but not on the other user accounts. Youtube and tests on adobe site shows flash working on all accounts.  I've checked IE security settings and kill bit in the registry.  Harware acceleration does not make a difference.  I've unloaded and loaded Flash multiple times even in the other accounts changing account type to administrator temporarily.  Nothing will make it work.  I've checked firewall and Norton AV turning them on and off.  I am out of ideas and out of patience.  Does anyone have any suggestions?

    Hi, just wanted to tell this is exactly the same problems I have. And I have tested like you said. My administrator user account can show embeded videos correctly, but both my non-adm user account can not show correctly embeded. And tried to change non-adm account to adm - did not help.
    System: Vista home, IExplorer 9
    Videos on Youtube.com plays perfect and the adobe "about" flash page shows I have installed latest and I see a spinning logo with my non-adm users.
    I have also checked the kill-bit in registery.
    But I did find out something, unfortunally it's not a solution, but a clue what's going on - I hope.
    If I open this example webpage, all I can see are 2 blank frames and a icon in upper left corner.
    If I open same weblink with my adminastror, I can see the videos.
    http://www.artvps.com/index.php/tutorials/shaderlight/render
    After alot of search on the web, I found some ideas. Copy the below text and save it as "test.html", and open the file in IExplorer. This html text is a mix of collected html-text from above webpage and added some from youtube.com where you get the html-code to copy&paste to embed. The source at end is using IFRAME methode.
    The only visible embeded sources using my non-adm account are those that has a "classid" added or IFRAME methode. If there is no "classid" my non-adm account only sees a blank frame and icon in upper left. My administrator account does see ALL sources.
    But how to fix that I can see all embeded as non-adm user - sorry, I have no clue
    One extra thing: I noticed when running IExplorer as non-adm user, I can see a line in the process-list in windows taskmananger, process-name "FlashUtil10n_ActiveX.exe" with info-text "Adobe Flash Player Installer/Uninstaller 10.2r152" if I try to view a webpage with flash source.
    If I do the same thing with my administrator user this process is not listed in windows taskmanager.
    Here is a screenshot from using IExplorer (adm & non-adm) and Opera.
    ***************************START COPY***************
    <html>
    <body>
    <embed height="340" type="application/x-shockwave-flash" width="560" src="http://www.youtube.com/v/Jh0nXLHT878" allowscriptaccess="always" allowfullscreen="true"></embed>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="400"><param name="movie" value="http://www.youtube.com/v/Eu7k98YsaUY?fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Eu7k98YsaUY?fs=1" type="application/x-shockwave-flash" width="500" height="400" allowscriptaccess="always" allowfullscreen="true"></object>
    <p>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="340" width="560"><param name="movie" value="http://www.youtube.com/v/zd4WnGGceHk?fs=1&amp;hl=en_GB" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed allowfullscreen="true" allowscriptaccess="always" height="340" src="http://www.youtube.com/v/zd4WnGGceHk?fs=1&amp;hl=en_GB" type="application/x-shockwave-flash" width="560"></embed></object>
    <object width="640" height="390"><param name="movie" value="http://www.youtube.com/v/C9bYtpOZD9Y?fs=1&amp;hl=nb_NO&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/C9bYtpOZD9Y?fs=1&amp;hl=nb_NO&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="390"></embed></object>
    <p>
    <iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/C9bYtpOZD9Y?rel=0" frameborder="0" allowfullscreen></iframe>
    </body>
    </html>
    *************************END COPY******************************

  • WLS Embedded LDAP

    Gurus,
    I'm trying to register WLS Embedded LDAP under Global Settings -> Identity Management Setup. Has anyone done that before? Do I need to register a new identity plug-in? I'm a newbie on this matter, so any help is appreciated.
    Thanks in advance.

    Are all these sockets actually listening or are they waiting to be closed? You can use netstat -a to find the status of these LDAP sockets.
    May be they are not being closed properly.

  • How to use SMB trigger input on PXI-8187 in LabView

    Hello!
    I have PXI-8187 controller instaled in PXI-1031 and two PXI-4071 digital multimeters. I want to trigger mesurement with external trigger. One way is to used AUX port on DMM, another can be TRIG input on PXI 8187 CPU unit. Is possible to use this possibility in LabView 7? How?
    Best regards!

    There are multiple reasons why this is not a supported feature for triggering under Windows and why NI does not recommend using the controller's SMB connector for this purpose. National Instruments has hardware that was designed specifically for extremely accurate clock generation, synchronization, and triggering between PXI chassis (PXI-665x) and other recommended alternatives listed below.
    Non-deterministic propagation delays
    1. The controller's SMB input is not guaranteed to have a defined propagation delay to the backplane. This means the SMB trigger on the Windows PXI controller is useless for customers that want deterministic triggering. Unlike our PXI-665x boards which have a maintained API and precise triggering properties, the PXI controller's SMB connector and routing circuitry is intended for Watchdog use under LabVIEW RT and isn't designed for this use case. A trigger propagating through the SMB circuitry and going to the backplane, or vice-versa, could have a great deal of variance in the propagation delay which makes gathering useful triggers impossible. This propagation delay is not something National Instruments specs.
    An excellent available workaround: Use the measurement hardware's trigger inputs
    2. The triggering inputs on our measurement hardware (that customers likely have in their system) can route triggering signals to the PXI backplane (usually through PFI lines) with deterministic results. This functionality is fully supported in most of our APIs and will be maintained between generations of devices.
    NOT backward or forward compatible
    3. The SMB input is NOT guaranteed to be compatible between different versions of our PXI controllers under Windows. The hardware properties along with an excellent workaround are the reason we do not support doing routing of triggers through the SMB connector on our PXI family of embedded controllers under Windows. If you are still interested in the beta software despite the shortcomings, visit www.ni.com/support and submit an e-mail request.
    Adam Ullrich
    PXI/VXI Product Support Engineer
    National Instruments

  • Height of iFrame shrinks automatically in a par iView

    Hello all,
    Requirement is,
    On selection of month from dropdown list display the corresponding html file by generating url dynamically.
    For this we tried using both, isolatedHtmlContainer HTMLB control and iFrame html tag. The URL is generated properly, even the contents are displayed accurately.
    Now when we create an iView based on this par file, preview seems to be ok. But when we add this iView to a page, height of iFrame shrinks to default one, even though we specified it as "100%".
    Can anyone help me out with this....... or any other way to achieve the same result.....
    Thanks in advance,
    Amol.

    Hi Amol,
    You got two options:
    1. use Isolation Mode = EMBEDDED and under category "Appearence - Size" change the following: "Height Scale = Pixels", "Height Type = Fixed" and adjust the property "Fixed Height (Pixels)" to your desired size.
    2. use Isolation Mode = ISOLATED (URL) and change the property "Height Type" to Automatic.
    Please award points if you find this answer helpful.
    Regards,
    Amit.

  • Rules on using Adobe fonts on clothing?

    I was just designing a shirt for myself, which a few people also want to buy when I make some copies. Now, I was planning on using my favourite font, Magnesium MVB STD, which is an Adobe font.
    Do you need to ask or pay Adobe any extra money in this case? Or does you license for the font cover everything you make with it?

    You can look at the license for that font. But generally speaking, most fonts don't interfere with printed material, license wise. Only if you shared the font file or if you claimed that you created that font you could be asking for trouble . But even that's not always the case (sharing font files that is) as more companies are providing allowances for embedding and under certain circumstances such as sending font files to a printer may be allowed depending on the license.
    When ever in doubt look at the license that usually is included in the download, part of a software package or on the companies web site. And if that doesn't shed light contacting the company direct is then best. Its always better to ask than to be found at the end of a major lawsuit.

  • Overriding default jsp servlet mapping

    I want to override the default jsp servlet mapping under a specific directory. I have the following entries in my application's web.xml file:
    <servlet>
    <servlet-name>CMS</servlet-name>
    <jsp-file>/template/main.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>CMS</servlet-name>
    <url-pattern>/raw/*.html</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>CMS</servlet-name>
    <url-pattern>/raw/*.jsp</url-pattern>
    </servlet-mapping>
    When I call up the page /raw/test.jsp, it is processed as a normal jsp page instead of by the custom mapping. Calling up the page /raw/test.html works as expected.
    I am using the embedded server under JDeveloper 10.1.2.1.0.
    Isn't an entry in the application's web.xml file meant to override system wide mappings?
    Thanks for any help.
    Martin

    I'm no expert on this but I have a hunch. 1st of all, your using a servlet mapping for a JSP. That's good and well but it seems that the container is complaining that there is no servlet named org.apache.jsp.jsp.info.ContactUs_jsp. In other words it looks like the JSP has not been compiled. At least not yet. Maybe try two things. Visit the JSP once with a browser at it's actual path "http://localhost:8080/<webapp>/jsp/info/ContactUs.jsp" the coerce a page compile. Then try it with your new mapped path. You see, just telling the container that there is a servlet mapped to the new URL doesn't force the container to generate the class. Something or someone must generate the servlet class file.
    Honestly, I'm not sure of what your end goal is but maybe you might consider using a JSP pre-compiler? Or even better, register a servlet at the mapped path that fowards all requests into the desired folder.
    Cliff

  • Microproce​ssor VIs and TCP Debugging

    I am trying to use the
    LEP_Utilities_GetProjectInfo.vi  (included when you install microSDK) and
    getting an error every time I call it. There are no inputs except an error
    wire. Am I in the wrong scope? Do I need some type of reference to be established?
     Is there documentation regarding how to use this and the other  SDK
    VI’s? The help sections are not much help.
    The underlying reason that I am
    trying to use this VI is to implement the instrumented TCP/IP debugging, if
    there is a better reference than the porting guide for the debug
    implementation, could you also point me that way.

    The problem here is that LEP_Utilities_GetProjectInfo.vi is running in the wrong context. The missing context manifests itself in the form of error:
    Error 1055 occurred at Invoke Node in LEP_Utilities_GetProjectInfo.vi
    Possible reason(s):
    LabVIEW:  Object reference is invalid. 
    LEP_Utilities_GetProjectInfo.vi is meant to be a Plug-In VI, which means that it runs on the desktop in the context of the Embedded Project. So even if this VI is executable on the desktop, running it by itself outside a project will throw error 1055. Merely including in an embedded project under the My Computer as shown below will not make it work either.
    So where does this VI get its context from?
    As a Plug-In VI, this VI should get invoked directly or indirectly by right-clicking the embedded target in your Project Explorer and choosing one of the Target actions (like Build, Run, Deploy etc). This invocation provides the VI with the right context. Please look at the Plug-In VIs for any of the example targets included with the LabVIEW Microprocessor SDK to see proper usage.
    Hope this helps,
    Jaidev Amrite 
    National Instruments
    LabVIEW Embedded Product Support Engineer

  • I do not have a ringtones check box under preferences and I have already purchased ringtones.  Why wont the ringtones checkbox appear?

    I have read several posts with people who had similar problems of not having a ringtones sidebar on itunes.  They were instructed to go to preferences under general and select the ringtonescheckbox.  I have NO checkbox.  I have also already purchased a few ringtones from my iphone.  I want to convert songs in my library and put them into my ringtones folder, but I cant do that without the folder.  Please HELP!!!

    Ringtones has been renamed Tones.

  • TS1489 8.Deselect the checkbox under Compatibility mode if it's selected.

    Deselect the checkbox under Compatibility mode if it's selected.
    thats step 8 for turning off the compatibility mode of itunes, but i dont see that checkbox. I have windows 7, and everytime i use itunes a box pops asking for me to change some setting. i dont want it to happen anymore. please help me
    thanks

    Could you post a screenshot of your compatibility tab, please?
    Open the tab. While the tab is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file. 
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • Menu option under recursive tree item/folder & checkbox in tree

    Hi,
    I want to present a checkbox next to an item or folder in a recursive tree.
    I didn't see any option to do it so I tried to add a menu and a menu option type checkbox under the node item and note type.
    The issue it does nothing.
    Any ideas?
    THanks,
    Itay

    Hi Akshay,
    Everything mentioned here step by step:
    0. You cannot use check-boxes inside tree, so you have to emulate them with images (or use Table with Tree-like master column -- not discussed in this message)
    1. Create boolean attribute <b>isChecked</b> in node
    2. Create calculated read-only string attribute cbIcon, write following in generated getter function:
    return element.getIsChecked() ?
      "~sapicons/b_okay.gif" : "~sapicons/b_canc.gif";
    or whatever images you are using.
    3. Create & bind action onAction for TreeNode / TreeItem.
      -- apply parameters mapping in wdDoModifyView:
    if ( firstTime )
      final IWDTreeNodeType treeNode = (IWDTreeNodeType)
        view.getElement("<your-tree-node-element-id>");
      treeNode.mappingOfOnAction()
        .addSourceMapping("path", "selectedElement");
      <b>Your action must define parameter with type of your node element and name <i>selectedElement</i></b>
      -- write the following code for handler:
    selectedElement.setIsSelected( !selectedElement.getIsSelected() );
    4. Bind cbIcon attribute as TreeNode / TreeItem image source, bind rest of attributes.
    --Done.
    VS

  • What is "Remediate" checkbox under PRO Monitor Configuration

    Hi,
     I deployed SCVMM 2012 R2 and integrated with SCOM 2012 R2 for ProTips and DO testing, but i have below queries.
    1) ProTips are getting generated only for VMs which are configured with Dynamic Memory and not for VMs with Fix Memory.
    2) Don't get any ProTip alert when i increase Host memory usage to 90% using "testlimit64.exe"(Sysinternal Utility for stimulating the memory pressure) 
    3) What is "Remediate" checkbox under PRO Monitor Configuration ? when to use it ? any example ? 
    Thanks,
    Mayur
    MayurG

    1) That's by design. The monitor is designed for DM VMs only.
    2) To trigger VM Pressure alert, you need to increase VM Memory demand i.e. run testlimit inside the VM.
    3) Remediate is not implemented by default for these monitors so nothing will happen if u select them. However, it can be implemented by extending the MP and if selected , SCOM will auto trigger the defined remediation.
    thanks
    Chetan
    [Disclaimer] This posting is provided "AS IS" with no warranties, and confers no rights. User assumes all.

Maybe you are looking for

  • How to create a wifi network with airport express in hotel room?

    When I'm traveling to hotels that have internet, but not wifi, how do I set up a network using airport express?  When I've done this at home, I've used my laptop with the airport utility.  Can I do it with just an iPad?

  • Pivot table not displaying the values correctly

    Hi, I have created a pivot table in which i am using 2 tables. I pulled columns from table A and one column from table B in the measures section to get the grand total. All the rows are comming fine but, its not returning any values for tableB's colu

  • Output determination analysis for Handling Unit

    Hi Friends, Can any body help me on how to check the output determination analysis for  Handling unit outputs. I tried checking the document flow through delivery of the Handling unit but could not check. thank you for your help in advance.

  • Moving and

    I bought some music files and downloaded them to the default location on my C: drive.  I then copied and pasted them to my network L: drive.  iTunes is not picking them up in either the Home Sharing or Music file listing.  Why?  How should I have don

  • Unable to download more free games from Ovi Store.

    I some few rounds I've been able to download free games from Ovi Store, unfortunately when I was about to download more games, the red "error" note suddenly appear individually to the downloading games at the "New Downloads" section. I really don't k