How can I make a check box hidden (invisible) if a radio button is selected?

I am using Adobe Acrobat X Standard, and I can't seem to find a JavaScript that will do what I want.
I need one check box to be invisible or hidden if a certain radio button is selected.
Ex: if a user selects "yes" from the radio button list, I need one of 2 check boxes lower on the form to be invisible/hidden/non-selectable.
Can someone please help me?

Does this have something to do with a "field dependency" setting within Acrobat itself?
I am so confused at this point, I don't even know where to look anymore.

Similar Messages

  • How can I make a check box active ONLY if another check box is activated?

    How can I make a check box active ONLY if another check box is activated?
    I have an editable PDF for a client, which contains text fields and check box fields.
    There are three main check boxes (let's call them A, B and C) that the user is required to choose from, and I have given all three the same name in the Name tab of the General tab menu but different export values in order that ONLY one of the boxes can be checked at any time. Ticking one will deactivate another if it is already checked, etc.
    However, I then have a further two check boxes which I wish to become available ONLY if the second one of the above three boxes is checked. Other than that I do not wish the user to have access to them.
    I'm guessing it requires some kind of Action Script or Javascript, which is not my forté! Any help would be much appreciated.
    Regards
    Tony

    See Disabling (graying-out) Form Fields by Thom Parker. It covers both Acrobat and LiveCycle forms.

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

  • How can I make a gray box or gray screen in Pages over a few lines of text?

    How can I make a gray box or gray screen in Pages over a few lines of text?

    Thanks. Almost what I was looking for.
    While that makes for a gray over the lines, it still does not form a box.
    Any other suggestions to form a solid rectangular gray box?

  • How can i make a CHECK in an ALTER table, to compare 2 Variables of TWO different tab

    I have 3 tables:
    EVALUATION (No_expert, No_article)
    EXPERT (No_expert, origine, name)
    AUTHOR_ARTICLE (No_Article, Code_author)
    AUTHOR (Code_author, Name, Original)
    and my question is: How can i make a check to refuse each time an EXPERT ADDED to the EVALUATION table. If this one is an AUTHOR, in other words, the EVALUATION.No_expert must <> than AUTHOR.Code_author.
    This is what i did but it doesn't work:
    ALTER TABLE EVALUATION ADD CONSTRAINT No_expert
    CHECK (EVALUATION.No_expert <> AUTHOR_ARTICLE.Code_author);
    thank a lot
    luong.

    See Disabling (graying-out) Form Fields by Thom Parker. It covers both Acrobat and LiveCycle forms.

  • How can i add the check box beside the directory?

    how can i add the check box beside the directory? anybody can help?
    tis r the panel of my program :
    // FileTreePanel.java
    // JPanel for displaying file system contents in a JTree
    // using a custom TreeModel.
    package com.deitel.advjhtp1.mvc.tree.filesystem;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    import com.deitel.advjhtp1.mvc.tree.filesystem.FileSystemModel;
    public class FileTreePanel extends JPanel {
    private JTree fileTree;
    private FileSystemModel fileSystemModel;
    private JTextArea fileDetailsTextArea;
    public FileTreePanel( String directory )
    fileDetailsTextArea = new JTextArea();
    fileDetailsTextArea.setEditable( false );
    fileSystemModel = new FileSystemModel(
    new File( directory ) );
    fileTree = new JTree( fileSystemModel );
    fileTree.setEditable( true );
    fileTree.addTreeSelectionListener(
    new TreeSelectionListener() {
    public void valueChanged(
    TreeSelectionEvent event )
    File file = ( File )
    fileTree.getLastSelectedPathComponent();
    fileDetailsTextArea.setText(
    getFileDetails( file ) );
    JSplitPane splitPane = new JSplitPane(
    JSplitPane.HORIZONTAL_SPLIT, true,
    new JScrollPane( fileTree ),
    new JScrollPane( fileDetailsTextArea ) );
    setLayout( new BorderLayout() );
    add( splitPane, BorderLayout.NORTH );
    JCheckBox check = new JCheckBox("Check me");
    add( check, BorderLayout.SOUTH );
    public Dimension getPreferredSize()
    return new Dimension( 400, 200 );
    private String getFileDetails( File file )
    if ( file == null )
    return "";
    StringBuffer buffer = new StringBuffer();
    buffer.append( "Name: " + file.getName() + "\n" );
    buffer.append( "Path: " + file.getPath() + "\n" );
    buffer.append( "Size: " + file.length() + "\n" );
    return buffer.toString();
    public static void main( String args[] )
    if ( args.length != 1 )
    System.err.println(
    "Usage: java FileTreeFrame <path>" );
    else {
    JFrame frame = new JFrame( "JTree FileSystem Viewer" );
    FileTreePanel treePanel = new FileTreePanel( args[ 0 ] );
    frame.getContentPane().add( treePanel );
    frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    frame.pack();
    frame.setVisible( true );
    }

    You can maybe explore button and forms feature in InDesign. It was added in CS6.

  • How can I make music (mp3) play automatically in one Scene (NO buttons)?

    How can I make an mp3 play automatically in one Scene (NO buttons)? I have been searching the net for answers for over 10 hours with no answer... My movie will not be for the web, it needs to be portable (CD or flash drive)...
    PLEASE HELP!!!!!!!
    thank you!

    You just need to look in Help for the Sound class and possibly SoundChannel... if you have an MP3 in your library - right click it, and go to properties. Set the sound to export for ActionScript - and give it a class name - mySound will work. Then you can make it play with something as simple as:
    var a:SoundChannel = new mySound().play();

  • How can I make my email boxes smaller, so that all the stuff does not show after I have opemed it?

    The email that I am reading is very large with a lot of stuff that I do not need to see. How can I make my box smaller?

    ''hhennes [[#question-1047185|said]]''
    <blockquote>
    The email that I am reading is very large with a lot of stuff that I do not need to see. How can I make my box smaller?
    </blockquote>

  • How can I make the annotation box show in the printed word version on the pages app?

    I want to insert annotation box on the side of the text. But I found that i cannot do that, and the annotation box disappear on the printed version of my document. How can I make that appear on my printed verison? Thank you!

    You are referring to Comments and Apple has removed the old method from Pages 5.
    If it is important to you go back to using Pages '09 which should still be in your Applications/iWork folder.
    Peter

  • How can I make a "check mark" be required?

    I have an approval form where my customer needs to check that they have read something... I want it to be required before they can submit the form back to me. When I went to ceate my form, it would not let me check the required field... only on text? If this is not possible, how is another way I can do this?
    Would it be possible to make it a text field and only allow the letter X to be there? I am new to forms so not sure if there is a way to do this either.
    Thanks so much for all your help...
    Jayme
    I am using Acrobat 8 pro.

    Check-boxes can't be set as required because they always have a value, when
    ticked and when not.
    Using a text-box is a good idea. Otherwise you would have to submit the
    file using code, which would mean that you'd also need to validate the rest
    of the required fields using a script.
    Another option is to add a piece of text next (or onto) the Submit button,
    saying something like "By clicking this button you agree, etc...".

  • How can I make a text box in Aperture transparent??

    Hello,
    After a great trip to Thailand I want to make a book of all my pictures using Aperture 3. At some places in the book I use a title to indicate what will be shown on the image. This title is made by the text box and it is put on the image itself. Now what I would like is to make is a transparent bar of the text box, so that I still can see the details of the image through this bar and also read the text about the image easily.
    I have no problems making this text box and putting it in the right place, the thing that I don't understand, after two nights of trying, is how to make this text box transparent.
    Any help is appreciated!
    Thanks in advance!

    Perhaps I need to reformulate what I exactly want to do...!
    I would like to use transparent text boxes but not as transparent as the image itself. I want to show the text box as a real bar but slightly different than the original image colour. So something between a normal image and a white bar so that it will be a bit transparent but also shown as a real bar..
    I think the text boxes of each theme are identical, so yes you are right about the transparent text boxes of art collection but they are the same as photo essay.
    Do you understand what I mean?

  • How can I make a color box indicator transparent?

    All, I would like to make a color box, which is part of a cluster in an array, transparent programmatically.  Instead of appearing transparent, it shows up with a LARGE "T" inside the color box, with a white background.  Because it is part of a cluster within an array, it will not work to use a property node... and because I would like to programmatically change the color, having it permanenty transparent (as proposed on another discussion topic) will also not work.  Can someone please help me turn a color box transparent programmatically?
    Thanks.
    Anthony

    The problem is that arrays of clusters cannot be passed into property nodes as falkpl has previously said. The attached jpeg shows how you would programmatically break the arrays into cluster, into elements, and then manipulate that color box to a transparent one. The T within the white color box indicates transparent though. If you were to attached that to a color attribute then you would see that object disappear (well I guess not since it's transparent )
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    color box.JPG ‏21 KB

  • Lion is very slow. I have problem to make copy of a file. How can I make a check  to see what is wrong?

    Lion is very slow. The big problem now is when I need to make a copy of a file in an external HD. A file about 7 Gigas can take 4 hours!!!
    Using Aperture I try to save a library in an external HD (another) with function "export project as a library" an takes hours for something around 1 giga.
    Since I have Lion I can not use Time Machine. I have a Western Digital 2 Teras in raid 1. 1 tera for copy and 1 tera as an image. It's been impossible. I had to format the HD and when I try to start using Time machine my 600 gigas of data becomes in 7 days!!. 7 days !! for a backup. An usually after several hours (sometimes 20hrs,  sometimes 1 day and a half) the process stoped abrudtly... and that's it. star again.
    How can I check or perform a exploration to see what is happening?
    thanks in advance
    RyJ     

    Is a Western Digital Studio Edition II 2T (in RAID 1 mirror). The HD has 2 drives 1T each an put one mirroring the second one.
    HD is connected to Mac through Firewire 800.

  • How can I make a text box with 2 columns?

    I can't figure out how to make a text box with two columns. I made one in pages and pasted it into iWeb but it seems to have turned it into an image when I published to a folder. I want to keep it text so the search engines will index it.
    Any suggestions would be greatly appreciated.
    Thanks, David

    You will have to create two text boxes, configure them as columns and then paste into the first and cut where you want the columns to end and paste the remainder into the second column as on this page . I've tried saving a two column Word document as a web page and it just converts it to one column.
    OT

  • How can I make a dropdown box populate with values from other fields?

    I am trying to create a NCAA bracket where they select teams from a dropdown menu. For example, they choose which teams win in game 1 and 2 through a dropdown box. The winner of games 1 and 2 then play each other, so how can I populate the dropbox with their selections for game 1 and 2?
    Game 1 winner --
         (game 9)        |--- Game 9 winner
    Game 2 winner --
    Game 9 winner needs to populate with their selections from game 1 winner and game 2 winner.

    I would look at using the setItems Acrobat JavaScript method.
    Have you considered using  a Mouse Up action for "Game 1" and "Game 2" to fill "Game 9"

Maybe you are looking for