Hide objects based on the menu drop-down

Hey guys,.

I hope someone here can help me. I've been browsing the forums and tried several options, but can't get anything to work.

That's what I put in place:

  • Drop-down list with the following options:
    • All (value 1)
    • Specific (value 2)
    • Range (value 3)
  • Two different text boxes (a named range and the other named specific)

What I'm trying to accomplish:

Based on the drop-down menu, the boxes must be visible or hidden:

  • All (value 1). the two boxes are hidden
  • Specific (value 2); the specific box is visible, but the beach area is hidden
  • Range (value 3); the beach area is visible, but the specific box is hidden

No matter what I try (JavaScript and FormCalc) I can't get this to work. If I start with hidden text areas they appear not visible, and when they begin to visible, they hide. I'm pulling my hair out on this one. Any help would be greatly appreciated.

The error isn't in your code, it's in the form itself...

In LiveCycle Designer, you have the properties of form that will design the PDF on how he'll react

You form is set to be a static PDF and a large number of features are disabled in static PDF files

To change your static to the dynamicform, follow the instructions:

1. in LiveCycle, open your PDF form

2. click on Files > in the form

3. open the default values tab and change the last static dynamic dropdownlist (this option may not be necessary as it is for the side server only, but change still)

4. open the overview tab and change ' Preview Adobe XML Form as ' of 'static PDF form' to 'shape dynamic XML'

I hope that this will help there!

Tags: Adobe LiveCycle

Similar Questions

  • Please help guys - hide fields based on the menu drop-down - javascript - output (adobe livecycle)

    I'm trying to hide certain fields in a form that is based on any value selected from a drop down menu, as shown in the image below. My main dropdown has values such as $25, $50 $ 75 and based on what value is selected, I want to hide two text field and date field, I created. Also when you select a value of $1000 I want to hide the ' field Manager ($ 25 - $ 100).

    hidefields.jpg

    That's how I would solve the problem. Note that the numbers used in the comparisons are links in the drop down menu.

    I don't know if it solves your problem exactly, but he should at least get you on the right track.

  • Make the text visible/invisible field based on the menu drop-down

    I currently have a form that automatically calculates dates based on the value in particular the "Text10" field with the current script of

    Custom calculate script for the field 'date '.

    (function () {}

    Get the date in the field

    var v = getField("Text10").valueAsString;

    Convert string to date

    var d = util.scand ("mm/dd/yyyy", v);

    Add 30 days

    d.setDate (d.getDate () + 31);

    Fill in this field with the result

    If {(v)

    Event.Value = util.printd ("mm/dd/yyyy", d);

    } else {}

    Event.Value = "";

    }

    })();

    I want to thank this option to hide the field if one selects a particular value in a drop-down list. Allows to call the drop "decline.1" and values are just 'Yes' and «» Yes makes visible, hide it.

    Is this possible? I looked through the forums and can't seem to find a solution. I use Adobe Acrobat X Pro

    Thank you

    Yes, it is possible. Just add the following line, this isn't little matter so long it after the first year and before the last:

    Event.Target.Display = getField("drop1").value = 'no '? Display.Hidden: display.visible;

  • Fill in the field of text based on the menu drop down.

    Here's the scenario: I have 2 drop-down lists on page 1 (list1, List2). Based on this selection, I want to fill in a text field on page 2 with their values, after clicking on a button to update at the bottom of page 2. I use the button click event, but how can I get the actual values of each drop-down list on the previous page?

    You must give the full path to the objects (i.e. form1. Page1.DDListName.RawValue). look in the view hierarchy to see the structure you want. Conversely, you can place the cursor in the script editor where you want the reference to appear, hold done the key ctrl and move the mouse to the object you wish to reference (it will change into a V). Then click on the mouse and the appropriate for this object reference is displayed in the script editor.

    Paul

  • Display of the image based on the menu drop down.

    I'm new to the Live Cycle Designer and trying to create a form where you can select a name of an image in a drop-down list and the image appears on the page to print.  The images would be vary in size, so what matters.

    I have copy and pasted using Microsoft Front Page code and it works but not sure how to convert a .pdf file.   Maybe it is not even possible I wonder where the images reside?

    Here's my code for the cover Page:

    < html >
    < head >
    < script type = "text/javascript" >
    {Window.OnLoad = Function ()}
    setImage() {} function
    var img = document.getElementById ('image');
    IMG. SRC = this.value;
    Returns false;
    }
    document.getElementById("ImageList").onchange = setImage;
    }

    < /script >


    < / head >
    < body >

    < select id = 'ImageList' >
    < option value = "images/transimage.gif' > Select Image < / option >"
    < option value = "images/image1.gif" >
    Image 1 < / option >
    < option value = "images/image2.jpg" >
    Image 2 < / option >
    < / select >

    < p > < img id = "image" src = "images/transimage.gif" / > < / p > "

    < / body >


    < / html >


    Thanks for any help.

    If you did that the value of exports is set on the binding tab, then it should work. You save the form as a "dynamic" PDF vs static? Otherwise, try recording in a dynamic form.

  • Capture AbstractActionItem SIGNAL to slip into the menu drop-down

    Hello

    So I need to do anything when I press the ActionItem in slide it towards the bottom of the context menu on BB10.

    I created the shot on the menu drop-down

        Menu *menu = Menu::create();
        Image infoIcon = Image(QUrl("asset:///images/info"));
        menu->addAction(ActionItem::create().title("Info").image(infoIcon));
        menu->setObjectName("infoItem");
    

    Looked at the docs. AbstractActionItem

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__abstractactionitem.html the action point emits a triggered() Signal.

    Then ran info a bunch of question that did not help.

    • Looked QTDocs
    • Looked at the signals & Slots section of BB stunts Docs

    in my App.hpp file I added

    public:
       void debugText();
    

    I tried to connect the menu by using the following code:

    connect(menu->objectName(), SIGNAL(triggered()), this, SLOT(debugText()));
    

    It does not work, and I spent 2 hours trying to figure why not.
    How do you connect in fact these things?

    Thank you!

    Hello

    trigger signal is attached to ActionItem itself and not Menu object.

    And don't forget the Q_SLOT macro.

    class xxx : virtual QObject {
      Q_OBJECT
    
    public:
      Q_SLOT void debugText(void);
    };
    
    Menu *menu = Menu::create();
    Image infoIcon = Image(QUrl("asset:///images/info"));
    
    ActionItem *mItem = ActionItem::create().title("Info").image(infoIcon)
    
    menu->addAction(mItem);
    menu->setObjectName("infoItem");
    
    connect(mItem, SIGNAL(triggered()), this, SLOT(debugText()));
    

    Nicklas

  • Change of image in the selection of the menu drop-down

    I am very new to LiveCycle ES 8, trying to get what I think can be called a dynamic image. When you select a value in the menu drop down, the image changes on the other page, to adapt to the value selected in the previous page. I'm not a programmer, I'm ready to do what I can to make this work. Any help would be greatly appreciated. Thank you.

    Hello

    It is possible to achieve what you want. You will need a few items:

    • drop-down list object script;
    • objects 'image', one for each image you want. It would be set to hidden.
    • object 'imageField. You should only one of them. The initial value is null. The script in the menu dropdown will fill the imageField with the object of the appropriate image.

    When you configure the drop-down list, it may be convenient to specify values in the binding tab (for example, 1, 2, 3,...). Then, in the script, you can view the numbers rather than the strings that the user sees in the drop-down list.

    The imageField1 must be set to access read only in the initialize event:

    This.Access = "readOnly";

    This will prevent the user of the substitution of the image.

    When you configure the image1, image2, image3 objects make sure you check the "embed image data', users can not have images available to them.

    You can put similar Javascript in the event of release from the drop-down list:

    If (this.rawValue == 1) {}

    imageField1.rawValue = image1.value.image.value;

    } ElseIf (this.rawValue == 2) {}

    imageField1.rawValue = image2.value.image.value;

    } ElseIf (this.rawValue == 3) {}

    imageField1.rawValue = image3.value.image.value;

    }

    Good luck

    Niall

    PS because the drop-down list object and image objects are on different pages, you will need full references. If the drop-down list is located on page 1 and the pictures on page 2, the reference should look like:

    Page2.imageField1.RawValue = page2.image1.value.image.value;

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • symbols of site little left of the names of sites in favorites have disappeared in the menu drop-down

    These are the small individual square symbols identify the Web site. They are present when checking under "Show all bookmarks" menu drop-down [which opens the info files], but do not show that they were previously in individual link lines in the menu drop-down.

    Hi nateich2,

    You should take a look at this article which discusses some of the problems with the latest version of Firefox.

    There is some information here that should help you solve your problem. Fortunately, this is a very easy solution.

    Hope this helps!

  • Epson Workforce 545 all-in-One: project of black and white print option is no longer in the menu drop-down

    Hello. I am trying to print in draft mode, black and white, but since I recently installed and then uninstalled a printer canon, printer all-in-one Epson Workforce 545 is more offers me black and white mode fast draft on the menu drop down.

    Thanks in advance for your help.

    It is a forum of HP.  The Epson Workforce 545 you had to best results in the Epson support pages here.

  • The bookmarksdrop in the menu drop-down is too big, as it covers the greater part of my screen - how can I make it smaller.

    Whenever I select the menu drop down Favorites, it is so big that it covers the major part of my screen. Then, when I go to a folder in the drop-down menu, if I stop to any other folder, it opens and is so great that the menu drop-down or completely covered. This is VERY irritating and I never had this problem before moving on to Firefox 5.0. How do I don't cure it?
    I use a MacBook with a 13 "screen

    It is probably because you have one or more bookmarks with a long title.

    The width of a column in the list of bookmarks is in the current versions of Firefox automatically adjusted the bookmark with the longest name.

    You can check the names of the bookmarks and the longer more short.

  • Is there a way to return to the menu drop-down button "return"?

    It's a giant pain click back several times when before I could just look in the menu to find the page I wanted to come back.

    Is there a way to do this somewhere else perhaps?

    You can get the menu drop-down by clicking on the previous/next buttons or now the left key pressed until the list is displayed.

    If you want the drop-down arrow, you can add it with the add-on of dropmarker rear - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • When I go to delete a bookmark - I click the menu drop down and the page that I just removed is still there. What I am doing wrong.

    I click the menu drop down and highlight and open the web page and then I click on the yellow star and choose the tab delete press done and when I close and click the menu drop-down new my web page is still there that I wanted to delete.

    Click right a bookmark in the menu dropdown bookmarks and select Remove to remove the bookmark.

  • 660 x Schematic of the low resistance of the menu drop-down

    The 660 x data sheet mentions that the State of market has an entry (high Z) with low pull-down, but I can't find a diagram with this low resistance value of the menu drop down.

    I want to measure a clock signal on my DUT without loading or distort the signal, so I intend to use a buffer. I am concerned about the current required drive to overcome unrolling integrated resistors and the requirements of threshold as a result of my meter PXI-6608.

    If anyone has a link to the recommended buffers, levers of level or an article in the knowledge base with an example circuit, it would be much appreciated!

    http://www.NI.com/PDF/manuals/372141b.PDF

    It was working fine. I look forward to adding to my next PCB ITA.

  • How can I get a program icon for the office high back on the menu drop-down?

    I accidentally pulled the icon 'Windows Explorer' on the menu drop-down 'Programs' (instead of create a shortcut).  Now I can not understand how to get it back.  If I display the menu drop-down then try to sneak back, as soon as I click the icon, the menu drop down disappears.

    This should do it:

    1. Click the Start button.
    2. Click Open .
    3. Click programs .
    4. Click on Accessories .
    5. Drag the icon into the folder.

    Boulder computer Maven
    Most Microsoft Valuable Professional

Maybe you are looking for