Hide a text field, unless a certain option is selected in a menu drop-down

Hello

I am working on a form and need to hide a text field, unless an option is selected in a drop-down list box. There are nearly 30 options in the dropdown menu, but only to trigger the text field.

I tried this script on the field of text under "calculate":

Event.Target.Display = (this.getField("Dropdown1").value == "Other")? display.visible:display.hidden;

but it doesn't seem to work. I have looked for alternatives, but impossible to find exactly what I'm looking for. Any help is greatly appreciated.

The first two characters (backslash) make this line of code one comment, so if you remove it should work.

Tags: Acrobat

Similar Questions

  • Create application option not available in the menu drop-down

    I can't access the option 'Create approx...' in the drop down menu to the Folio Builder. All the options in the menu drop-down are there except for the option Create App. Does anyone know why this is the case?

    Thanks in advance for the help.

    Mac only

  • Auto-fill text box values field based on the selection of the menu drop-down

    Try to fill in address, city, province, zip from text fields based on the selected option in a select form field. The following code works fine in Internet Explorer, but in Chrome or Firefox, after selection, text, the fields are filled with the word "undefined."

    I found a PHP script Jquery here version that would probabably do the trick.
    http://StackOverflow.com/questions/3657127/jQuery-populate-text-input-from-table-based-on-select-Valeur

    Maybe someone has a version of CF. they could share?

    Thanks in advance to anyone who can point me to a solution for this code, or a better way to fulfill my need.

    <!--> destinations with address auto-fill, city, etc.
    < script type = "text/javascript" >
    function selectAddress (list) {}
    take the first element is empty
    If (list.selectedIndex > 0) {}
    var locationID = list.options [list.selectedIndex] .value;
    locationAddress var = list.options [list.selectedIndex] .locationAddress;
    var locationCity = list.options [list.selectedIndex] .locationCity;
    var locationState = list.options [list.selectedIndex] .locationState;
    var locationZip = list.options [list.selectedIndex] .locationZip;
    document.getElementById('locationID').value = locationID;
    document.getElementById('locationAddress').value = locationAddress;
    document.getElementById('locationCity').value = locationCity;
    document.getElementById('locationState').value = locationState;
    document.getElementById('locationZip').value = locationZip;
    }
    }
    < /script >
    < b >
    < td align = 'right' bgcolor = "#FFFFFF" valign = "top" > Destination name < table >
    < td align = "left" bgcolor = "#FFFFFF" valign = "top" >
    < select name = "locationID" onChange = "selectAddress (this)" class = "smallforms" > "
    < option value = "" > SELECT the DESTINATION ››› < / option >
    < cfoutput query = "allLocations" >
    "" < option value = "" #locationName # "locationAddress =" #allLocations.locationAddress # "locationCity =" "#allLocations.locationCity #" locationState = "#allLocations.locationState #" locationZip = "#allLocations.locationZip #" > #locationName # < / option >
    < / cfoutput >
    < / select >

    Others: cfinput name = "destinationNameOther" type = "text" class = "smallforms" size = "75" >
    < br / >
    < input id = "locationID" name = "locationID" type = "hidden" > < br >

    Address: < input class = "smallforms" id = "locationAddress" name = "locationAddress" type = "text" size = "30" >
    City: < input class = "smallforms" id = "locationCity" name = "locationCity" type = "text" size = "20" >
    State: < input class = "smallforms" id = "locationState" name = "locationState" type = "text" size = "2" >
    Postal code: < input class = "smallforms" id = "locationZip" name = "locationZip" type = "text" size = "8" > < br / >
    < br / >
    < table > < /tr >

    In your last code done selectAddress refers to "index" but I'm not declared or assigned. I think that you are missing 'var index = list.selectedIndex;' statement.

  • Why subscribers e-mail to the addresses in the list of options in the form title menu drop-down

    Hello, can someone tell me why this is happening?

    A site of BC has a few mailing lists with subscribers and a form that allows users to subscribe to them. When I add the shape to a page using a copy/paste the html code or insert the form as a module, the form generates all email subscribers address in menu options drop-down title as well as regular options of Mr, Mrs, Miss etc.

    Anyone know why this is happening and how can I stop it?

    It is not a major as I can remove them easily enough, I just want to know why it is happening.

    I just remembered. It was so common that has support of a button inside their interface to reset securities. If go you to them, they will do that in a second.

  • There is no other option "send to" in my menu drop-down scan. I can't understand how to add a destination ' send to '.

    I downloaded a HP C4700 series scanner/printer and when I try to scan, it will not send it to my computer because I don't have a choice "send to" in the list window combo printer.  It's the second scanner, what happened with, so I think that the problem is in the operating system of my computer.  Does anyone know of a change of setting, I can do?  I have Windows Visa.

    Thank you!

    Lynn

    Any material support - including the software that allows the device to communicate with an operating system - is the manufacturer of the hardware device.  In your case, it's HP.

    Which * specific * all-in-One series C47xx device do you have?

    You have 32-bit or 64-bit of Windows Vista?

    Have you downloaded the "Photosmart HP full feature software and drivers" to any device specific all-in-one you have and the architecture of Windows corresponding Vista (32-bit or 64-bit) that you have?
    (You can leave the selections above.)

  • Show alert window when the selection is made in menu drop-down (or when the text field is filled)

    I'm a JavaScript novice writer and need help a warning window that meets the programming user selection form a menu drop-down.

    If the user selects any option except the default choice (which is just an empty space), I want an alert is displayed.  If the user is moving through this area without changing the default value, nothing should happen.

    I have a script attached to the "blur" event for the dropdown menu, but it appears each time you tab in this area, of course.  I don't know how to tell him to display the alert if and only if the user has changed the selection.

    Similarly, I have another field which is a simple text field.  If the user types anything in this area, I would like another alert window pops up.  The thing from the drop-down list seems a little more difficult, so if anyone can help me get that squared away, I can probably understand how to program the alert text field.

    In fact, it's the same code for both types of fields:

    If (event.target.value! = event.target.defaultValue) app.alert ("your message");

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

  • Windows text disappears when I open a menu drop-down

    original title: TEXT disappears

    When I point to any word in the dialog boxes or need to choose all the options in a menu drop down, my text disappears and the text box is white.  Please help me fis this annoying problem.

    Hi YvetteKing,

    Thank you to contact the community Microsoft and we will be happy to help you with your concern.

    According to the description, I understand that, while you select a word or drop-down box the text box disappears and becomes white.

    He would be grateful if you can answer this question in order to help you further.

    Have you made changes on the computer before this problem?

    I would suggest trying the following steps and check if it helps.

    a. right click on computer.

    b. Select advanced in the left pane system settings.

    c. Select the running parameters.

    d. in respect of Visual effects, remove control "Use Drop Shadows for the desktop icon labels".

    Thanks for posting the question in the Microsoft Community. If you need others with this problem please do not hesitate to join us.

  • Error message based on the text in a menu drop-down...

    So I have a simple numeric field and a drop-down text box (with, say, the values of 'Blue', 'Red' and 'Green'.)

    I want to set a minimum and maximum (say between 5 and 20) on the number of value field and send an error if the user enters a number outside this range. BUT the beach can be different depending on whether the user selects blue, red or green on the menu drop down.

    So for blue, the beach can be 5-20; for the Green and Red 7-22, 10-25.

    SO if the user chooses the blue then enters a 4 or a 21, there will be an error message pushing a value of 5-20.

    It is, in a Word.

    Any help I could get would be great. Thanks in advance.

    Thank you

    T.

    You want to apply exactly the same code for other areas? If so, it would be better to place it in a function at the level of the doc and call from each of them. Regarding their reset, it's like this:

    this.resetForm (["Text1", "Text2", "Text3"]);

  • How to create a context-sensitive help when you move a field/menu drop down message

    Hello

    Anyone know how to create a message dialog box helps to appear when a user hovers over a field, a menu drop-down or a subform?  Rather than create a context-sensitive help. I want to be able to give the user a hint what to do they have their mouse over a part of the form.

    Thank you for your help.

    Best regards.

    You can make the text in the tool tip box in the accessibility to this palette.

  • Meta Refresh does not refresh the menu drop-down select options but don't check the boxes... IE works without error (Max FF issue)

    Drop-down list not update even if the html code was changed using the meta refresh tag. The problem has been resolved by deleting the name of the list in the html code in the part of my page refresh. It's a php script, so I can do but with html directly, I don't see a way to solve the problem for others finding this a problem, FF should not do this.

    Example:

    < select name = "page_header_color" >

                 <option >blue</option>
               <option >green</option>
               <option selected >red</option>
               <option >black</option>
               <option >silver</option>
             </select>
    

    whether refresh properly changed to this:

    < select name = "" >

                 <option >-------</option>
             </select>
    

    the script modifies the page preceding between the discount and the 'real' html that resolves this problem, otherwise FF does not update the drop-down lists at all, but it is updated check boxes and everything.

    You must reload and bypass the cache to reset the choices made through selection and from the drop-down list boxes.

    Otherwise the selection are reloaded from the cache, so a meta reload does not work either (can work if you reset the through an onload event).

  • Network option just is not in the drop-down list under the definition of the property

    I have a vRA 7 installation and am trying to create a drop down menu option to choose VLAN while deploying VMS from the Blue Print.

    To do this, have created a property definitions as below.

    Capture.JPG

    Then I had created a group of properties like below

    PG.JPG

    Then to Blue Print Custom property and added the Group of properties and property custom added the VMNetwork

    When I return to the catalog and deploy a new virtual machine can't see any vlan in the dropdown option menu.  instead I see the preset in the menu drop-down

    pg3.JPG

    Why the drop-down list values Vlan do not come up instead of this the name value appears.

    If mistaken. any help appreciated

    Try like this:

    The property group is like the old building profile, a way to group several properties. You must specifically that he would do that.

    Grant

  • I turned on my PC today and I did not "PRINT" option when I go to the drop down "FILE" menu... totally gone... Could someone please advise me how to recover?

    I turned on my PC today and I did not "PRINT" option when I go to the drop down "FILE" menu... totally gone... Could someone please advise me how to recover?

    Thank you for your comments... I guess it is the restoration of the system for me!

  • Expand/retract all occurrences of the text in menu drop-down in a topic

    I was unable to find anything about this is on this issue so please forgive me if I have missed somewhere.

    I'm working on a webhelp in RH0 project which uses a LOT of drop-down text.  One of the problems is that I can't find a way that it is possible to expand or reduce (i.e. + or)-all occurrences of the text in menu drop-down in a topic once it is in WebHelp output.

    Thank you!

    Tests - http://www.grainge.org/pages/authoring/twisty/twisty.htm or http://www.wvanweelden.eu/blog/2013/09/04/expand-selected-drop-downs-default

  • Adding menu drop down select field

    I don't see a way I can add a drop-down list or multiple selection form field or a field of radio button in the contact form widget.

    Isn't this possible?

    Thank you

    Hannah

    Hello

    I'm sorry to inform you that in Muse form Widget there is not possibility to include the menu drop-down or check boxes. You can use the following as a workaround to achieve this.

    Gadget of the form:

    https://widgets.Mu/se/FormsPlus

    Incorporate jotform:

    You can create a form in JotForm · Form builder and then you can incorporate in Muse of object > insert HTML code

    Concerning

    Vivek

Maybe you are looking for

  • Sales

    Buy the right to the Denmark. Why Apple does not respect the law. Even Google is consistent with the sale of goods Act almost... They offer a two hour delay to regret buying on the net. Kaere Rudolf The kobt iResizer 3 10 den har. Feb. 2016 og accept

  • HP Pavilion 15 p001TX: missing audio software bat

    Beats audio works well last week. Two days back that some windows update took place and I don't check on the audio at the time. Today, I inserted my earphone and the notification that appears usually audio beats that "earphone is plugged" did not app

  • Cannot install the update KB955839 - error code: 80070490 & vista Service Pack 2

    I have vista ultimate and have been unable to install KB955839 for quite awhile now, I can install each update except KB955839.Without KB955839 installed, I don't not offered Servicepack 2, as an update in windows update, however when I hide it I'm o

  • 10-digit dial plan design

    Hi all My company is migrating from a 4-digit 10-digit dianplan. The idea is to keep the calls intra-site with 4 digits and called intersite 10-digit. The question is should I change the extensions on CUCM 10-digit numbers and add a rule of translati

  • TMS Provisioning Extension required for Jabber Video

    All, I'd check that commissioning Extension is not required for TMS (14.x) allow video exterenal Jabber users to participate in a video conference on a microcontroller.  These will be not registered in VCS video external Jabber users. Thank you John