Please help a poor beginner to open a text box based on a drop-down list

Hello world

I am quite new to the life cycle and my experience isn't in the lineup, so I hope that you will be kind to me. I designed a form that we use to send to our Bank to hire contractors. I need to make a text field become visible collection of some inscriptions on the drop-down list. for example, if an entry in the drop-down list "Holiday", I need another text field become visible to the user of maunally enter an extension number. If the user selects, say, "Study leave", I need the text box to stay invisible to the user.

I hope this makes sense.

Thank you guys & Gal

Heavy E

It is a java script placed on the drop-down list on the change event;

If (xfa.event.newText is "Vacancy")
TextField1.presence = "visible";

else TextField1.presence = "hidden";

Field1 text is defined as hidden

To answer your second example, add in the same field:

If (xfa.event.newText is ' Study/leave')
TextField1.presence = "hidden";

If it's confusing, let know us

Tags: Adobe LiveCycle

Similar Questions

  • FormCalc help - trying to multiply or divide based on the drop-down list

    So I'm a complete noob to this and Livecycle learning.

    I tried to make this formcalc script but its all wrong, I'm sure.  I have a dropdown menu with 3 variables (annual, quarterly, monthly), I need to take the amount in the box "given amount" and based on 3 variables come with the monthly amounts.

    If (giving regularity == 'Each year') then

    Amount given/12

    on the other

    If (giving regularity == "Quarterly") then

    Amount given/3

    on the other

    If (giving regularity == "Monthly") then

    Given amount * 1

    endif

    I'm sure it's very basic, but I would appreciate any advice from you in the pros.

    Capture.PNG

    Hello

    Make sure that you call your objects with the names of right...

    Object names can not have spaces, so when you specify "Given the regularity" or "Given amount", both are bad...

    don't forget to refer to these values to the right objects

    If you are not sure how to call these objects, you can still use the features of LiveCycle with Ctrl + click on the object...

    For example:

    Make sure your cursor is in the Code Editor, while now Ctrl, hover your mouse over the object to, you should see the change in your mouse to an arrow pointing down, then click on the left button of your mouse (still in holding the CTRL key)

    In your editor, you will see the reference to the object that you want to retrieve the value, it's how you call your object

    I hope this will help you!

  • help external drop-down list

    I downloaded a drop-down list widget and add in the list for different sections like list countries, list of post and living in State. I added the position and the list of the countries very well, but when I added to the list of State he adds to the list of countries well on a widget to separate list menu and the list of countries is becoming a long line of text and I lost the drop-down list. Why is this happening? Download widget is called

    Forms + Bundle

    Created by: Widgets.Mu

    Help is greatly appreciated. Thank you!

    Hello Walter.

    This seems to be a small problem with the widget itself, I would say you contact the developer of the widget and they would be able to check and correct the problem in the widget.

    Kind regards

    _Ankush

  • Please HELP - I am trying to open a catalog and window says: the catalog cannot be opened becau

    Please HELP - I am trying to open a catalog and window says: cannot open the catalog because another application has already opened - but NOT the OTHER RCTs is open. The continue button does nothing and there is a button to choose a different catalog which I did not need. How do I avoid this? Can HoD I open the catalog. I even tried to open it on the other computer and said the same thing. This is a problem with the hard drive? THANKS for any help!

    Lenka,

    Easy solution: find the catalog of lightroom on your hard drive. It ends by ".". LRCAT. In the same folder, there will be a file named .lock. Remove the .lock file and then run Lightroom. Everything will be fine.

    HAL

  • Can anyone help please if a drop-down list box with this dpdCategory.Items.Insert (0, "user")?

    can someone please help if a drop-down list box with this dpdCategory.Items.Insert (0, "user"); If I choose the user then after clicking the button, it will redirect to this page & also, others using if else statement

    Please ask this question in one of the Windows Apps development forums:

    http://social.msdn.Microsoft.com/forums/en-us/category/windowsapps

  • I think it would be helpful if when you open the drop-down list for a 3D object keyframe controls have the same color as the 3D arrows in the project window.

    3D colors.jpgI think it would be helpful if when you open the drop-down list for a 3D object keyframe controls have the same color as the 3D arrows in the project window.

    You can suggest that here:

    Feature request/Bug Report Form

  • I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the ProX1 op

    I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the option ProX1.

    Hi Carl,

    It seems that you have installed Acrobat XI pro as an upgrade and an upgrade you will need a serial number for a product older Acrobat X, etc. 9:

    See, error: "this serial number is not for a product calling it" | Adobe Creative Suite

    Also, I checked with your Adobe ID on the forums and I can only locate XI of Acrobat pro upgrade recorded, please check if you have registered an earlier version of Acrobat on some another email to get this serial number.

    Let us know if that helps.

    Kind regards

    Sandrine Bani

  • I use a horizontal menu of the widgets library. All right, except that I would have any of the drop-down list list stay open after selecting the top item... and remain open after the selection of a menu under item - so that the viewer knows where they are

    I use a horizontal menu of the widgets library. All right, except that I wish I had the all menu drop-down list stay open when you have selected the top element. And when you have selected a menu SUP item - so that the viewer knows where they are in the navigation. Who is? Thank you!

    Hello

    There is no native function to Muse to achieve this goal. However, if you host your site on Business Catalyst, you can take advantage of the functionality of breadcrumbs. He won't let the open drop-down list stay, but it will show customers on what page they are and that he can see that they have followed to reach the page. For more information, please visit the following link http://helpx.adobe.com/business-catalyst/partner/add-breadcrumbs.html

    Kind regards

    Aish

  • Related question drop-down list help

    In my dropdown menu, I have several different time zones and they are all related number of UTC offset. The problem is that when I click on a zone (for example Russia), he returned to the zone which precedes it in alphabetical order with the same offset from UTC. This is problematic because many different countries sharing the same UTC offset (that is-14-14).

    I wonder if there is a way to stop the drop-down menu to change automatically in a different time zone that has the same offset or if there is a way to get into the drop-down list and add all variable offsets.

    I'm new to JS if possible sentence there for a beginner. I never used before livecycle but know C++ and Java, and will have a hard time setting. With all the resources out there, it is difficult to find a good place to get a Uni livecycle background so if anyone has recommendations on the reference material so I would be interested in this good.


    Thank you.

    Hello

    The problem is that the bound value represents the value of the object, so that it always displays the first item in the display which corresponds to the bound value.

    We know by one of the LC Designer, setItems(), methods that Adobe will at some point in the future allow us to link several values in a drop-down list object. However for now you cannot have a single value given.

    But there is always a workaround solution. If you set values the display of elements to include the country. Thus, for example for a display item «Russia», the bound value would be "Russia,-14 a 14.

    It is a unique value in the drop-down list, so it will not solve the current problem.

    The last step would be to analyze parts of the bound value, so that you get the offset of UTC, which you can then use in your script.

    There is an example here: http://assure.ly/HjRnIN.

    Hope that helps,

    Niall

  • Help with drop-down lists

    I am using LiveCycle Designer ES 8.2 in Windows 7 and I have created a form here: http://olympicanimalsanctuary.org/volunteerapp.PDF

    I have two drop-down lists in the form, under the heading "internship seekers only" on the right side of the first page.  I created these manually, not with any code. When I try to click on the drop down menus in preview mode, as well as in Acrobat and online, the lists will not be open.  They Flash open for a split second, then close it again before I can click on my selection.  Someone else has the same problem with my form, or is this a problem on the end of my computer?  Any suggestions?  I have read some other forums where people have this problem with the drop down menus in other applications as well, but I only have this issue with my own form.

    Today is my first day using this application, so please, be gentle.

    Thank you

    Steve

    Hello

    I suspect that the drop-down list of objects has become corrupt or you have copied the object and then changed its type in a drop-down list or the object picked up the attributes of a shipment by the subject of the e-mail message.

    If you select the drop-down list and go to the XML Source, you will see the click event script is set to "mailto:"

    Solution is always the same - a drop-down menu again drag the shape.

    Niall

  • Make visible or invisible drop according to the value of another drop-down list. Help!

    Hello

    I need to create the following form... I want to choose at the beginning of the shape between 3 options (imagine: 'Opt1', 'Opt2' and 'Opt3'). And after that, I would like to make visible 10 different lists. I mean, if I choose 'Opt1', 10 drop-down lists related to 'Opt1' will become visible (the drop-down list together, including the text of the title and the clean drop-down list). Otherwise, if I choose 'Opt2', 10 drop-down lists related to 'Opt2' will become visible and the same 'Opt3 '.

    This problem, which seems to be very easy to resolve, it is impossible for me. I have read hundreds of forums and manuals, but I can't find the solution. I tried with several thousands of events, but I can't do the form works as I want... So, please, can someone help me?

    Thank you very much.

    Hello

    Here is an example. The script is located in the event of changing the drop-down list. The easiest way is to group your drop-down menus in subforms, then simply script for the visibility of three subforms, instead of 30 drop-down menus.

    The script focuses on the choice of the user and changes the visibility by using a switch statement. One if exposed to the exit event would work as well.

    switch (xfa.event.newText)
    {
         case 'Option 1':
              option1.presence = "visible";
              option2.presence = "hidden";
              option3.presence = "hidden";
              break; 
    
         case 'Option 2':
              option1.presence = "hidden";
              option2.presence = "visible";
              option3.presence = "hidden";
              break; 
    
         case 'Option 3':
              option1.presence = "hidden";
              option2.presence = "hidden";
              option3.presence = "visible";
              break; 
    
         default:
              option1.presence = "hidden";
              option2.presence = "hidden";
              option3.presence = "hidden";
              break;
    }
    

    Note that all three subforms are hidden in Design view. The drop-down list choice makes the appropriate subform visible.

    In design mode, you can select a subform in the view of the hierarchy and in the object/field tab change its visibility to visible, if you want to work on it in the design.

    Hope that helps,

    Niall

  • Help: Autofill numbers in drop-down list to another table

    Hello world

    Does anyone know how to automatically fill in a table of the value of the other table, based on the selected menu drop-down on the main table.

    As you can see on my pictures, my main table, I have a drop down list, so I have to be able to automatically to the second table based on the category that I chose to put the quantity. For example, I choose LIFE, then the amount will also be the second table where the arrow is pointing. What will be the formula on the designated table?

    Thank you.

    Hello Adrian TitikTemu,.

    As a reminder, you want autofill value of 1 sheet on a column on sheet 2 in number. One of the members of our community of colleagues gave some great instructions on how to proceed in this post:

    https://discussions.Apple.com/thread/7554247?start=0 & tstart = 0

    The response of Apple recommends that Barry has a few milestones to help in a situation like this.

    Best regards

  • Installed Firefox 17.0.1. Drop-down lists does not open now (like the drop-down list Twitter connection).

    Installed Firefox 17.0.1.

    Drop-down lists will not open now - for example, Twitter login drop-down list (so cannot connect to Twitter). Drop-down lists has worked for all the previous versions of Firefox.

    Its happens very rarely...

    No need to do it each time...

  • My index drop-down list of bookmarks installation does not include an option to export my absolute Favorites HTML file for security purposes. How can I do a safety case separated from my favorites please?

    I'm on version 4.0.1

    The drop-down list of bookmarks index includes only:
    Bookmark this page
    View all bookmarks
    The toolbar of bookmarks (export done on this etque ease)
    Recent tags
    Recently bookmarked
    Download bookmark modules
    These stars following is a complete list of all my favorites.

    The Tools dropdown has no export function is

    the help file "export bookmarks to an HTML file indicates it is a menu drop down called"Organize bookmarks"- is not a."

    I have an urgent need to save this file because I have to do a reinstall of Windows and my 'C' drive will be erased!

    Thank you, Richard Townsend

    Organize bookmarks has been renamed to display all bookmarks in versions of Firefox 4 +.

  • Hide the drop-down list when you print only when "PLEASE SELECT" is selected (unused field).

    Our form has several drop-down lists that by default the option "Choose", and not all of them are used whenever the form is used.  When we print a copy of each document, we would like the (unused) field "Choose" to disappear when printing - to make a copy of paper filter.  Is there a script for this?  I tried to use only the general framework ' Visible but does not print ", but of course, the field prints any - we need to print only when there was one another option as the default"Select"is selected.  Thanks in advance for your help.

    Coleen

    You can use a custom validation script, something like:

    Event.Target.Display = event.value = "choose"? display.noPrint: display.visible;

    To put this into effect, you will need to make a different choice and place it back to "choose." Another option would be to place as a custom Format script.

Maybe you are looking for