How to add a interactive drop-down list

I want a drop-down list that will add a set of required fields based on the choice from the list.
In this case, we want users to fill in their job title, and based on that title selected we need them to fill in specific licensing information. I haven't found a javascript (or I don't have the expertise) to make this happen. I have done forms in the past that would just hide unneeded fields, but is there a way to actually have the fields become active, or appear based on the list selections? 

Yes, it's possible. The general code would be something like this (as the drop-down field's custom validation script):
var field1 = this.getField("FieldName1");
var field2 = this.getField("FieldName2");
var field3 = this.getField("FieldName3");
if (event.value=="Value1") { // Show field1, hide the rest
     field1.display = display.visible;
     field2.display = display.hidden;
     field3.display = display.hidden;
} else if (event.value=="Value2") { // Show field1 and field2, hide the rest
     field1.display = display.visible;
     field2.display = display.visible;
     field3.display = display.hidden;
} else if (event.value=="Value3") { // Show all fields
     field1.display = display.visible;
     field2.display = display.visible;
     field3.display = display.visible;
} else { // hide all fields
     field1.display = display.hidden;
     field2.display = display.hidden;
     field3.display = display.hidden;
PS. Make sure you tick the option to commit the selected value of the drop-down field immediately (under the field's Properties - Options).

Similar Messages

  • How to add values to drop down list in adobe forms

    how to add values to drop down list in adobe forms

    Hi,
    If you are using WD Java following are steps of filling values in DD Box:
    1 Create a simple type in the Dictionary.
    2 Create an attribute "CountryNew" in the Context of type created by you.
    3 Write following code in the init method of the form:
    IWDAttributeInfo countryinfo =
                   wdContext.nodeEmployee().getNodeInfo().getAttribute("CountryNew");
    ISimpleTypeModifiable Country = countryinfo.getModifiableSimpleType();
    IModifiableSimpleValueSet countryValueSet =
                   Country.getSVServices().getModifiableSimpleValueSet();
    countryValueSet.put("IN", "INDIA");
    countryValueSet.put("US "USA");
    4 Add a Enumrated DD box in the form and bind it to the attribute "CountryNew"
    Hope this helps
    Amit

  • Does anyone know how to Add a date drop down list to a pdf file?

    Can someone tell me how to add a Date drop down list in a form

    There's no built-in function that does that in Acrobat, but there are some third-party tools that do.
    The two most known ones are by FormRouter, which is free and based on form fields (but also a bit buggy), and a non-free version created by Max Wyss, which is based on a dialog object.

  • Webdynpro " How to add values in Drop down list By Key"

    Hi experts ,
    i want to create a drop down list by key, i don't know how to assign values to it ( i.e. add list entries ) . Please help me on this ..
    With regards ,
    James..
    Valuable answers will be rewarded ....

    Hi,
    To fix values to the drop down key at runtime in the webdynpro application you can use the following code:
    DATA:
    lr_node_flightinfo TYPE REF TO if_wd_context_node,
    lr_nodeinfo_flightinfo TYPE REF TO if_wd_context_node_info,
    l_scarr type scarr,
    lt_value_set TYPE TABLE OF wdr_context_attr_value,
    lw_value_set like line of lt_value_set.
    get nodeinfo of node flightinfo
    lr_node_flightinfo = wd_context->get_child_node( name = 'FLIGHTINFO' ).
    lr_nodeinfo_flightinfo = lr_node_flightinfo->get_node_info( ).
    get value set (VALUE = CARRID , TEXT = CARRNAME)
    select carrid carrname from scarr into table lt_value_set.
    clear lw_value_set.
    lw_value_set-value = 'AI'.
    lw_value_set-text = 'Air India'.
    append lw_value_set to lt_value_set.
    sort the value set by the describing TEXT
    SORT lt_value_set BY text.
    set value to context attribute
    lr_nodeinfo_flightinfo->set_attribute_value_set(
    name = 'CARRID' value_set = lt_value_set ).
    Here CARRID is a drop down by key field on the screen.
    in The context it is an attribute in the node FLIGHTINFO.
    Please give Reward Points if this piece of code helps
    Regards,
    Manish

  • How to add a dynamic drop down list in RDLC reports in WPF

    I have to Load an RDLC report in WPF application and need to include a drop down list in report.Based on the selection of drop down list different reports to be generated.I am using C# and WPF.
    Eg: I have to list the details of employees in in RDLC report.There is a country drop down list, Based on the selection of country drop down list we need to display details of employees in the selected country.

    Looking good.
    With rdlc I think you will have to use the windows report viewer control.
    If this was SAP crystal reports there's a wpf report viewer.
    I never actually tried that with rdlc and I suppose there is a small chance they turn out to be compatible.  
    If you have questions on rdlc specifically then you're probably better finding a forum specialises in that. Not sure where that would be but maybe in the sql server forums.  It's a business intelligence thing and people who do the likes of ssis are
    what you want really.
    I do reporting myself but I think you'll find few others who do so here.
    Good luck.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • How do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    how do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    Where is this example spreadsheet? Without seeing it I can only guess at what you are asking.
    To make a drop-down list (a pop-up menu in Numbers-speak), format the cell as a pop-up then edit and add to the list of items.
    If the example spreadsheet is pulling in a dollar value based on what car you chose in the pop-up, it is probably using LOOKUP or one of the other lookup functions, getting the information from another table (a lookup table). If, instead, these dollar values are what you are choosing in the pop-up, then you need to create a pop-up with these values in it.
    The Help menu includes a link to a page where you can download the Numbers Users Manual. It also has a link to the Formulas and Functions guide. Both are useful to new users.

  • How can I get a drop-down list selection also be selected in another field with the same list but a different name?

    I have a street address and a billing address. A question is posed with a checkbox — "Is the billing address the same as the street address?" If Yes is checked, the street address automatically fills the billing fields. If No is checked, the user must fill in new information. In both the street address and billing addres, the State field is a drop-down list. How can I get the drop-down list selection in the street address State also be selected in drop-down list for the billing address State?

    Has anyone done this?

  • External XML data files to add values to drop down lists

    I would like to have external XML data files to add values to drop down lists in my form.. But when i create a data connection it is working properly only in the Preview in Livecycle Designer.. but not in the PDF form(Adobe Reader). Moreover im not sure whether it will work in the form manager..!plzz help me!
    Raghava Kumar V.S.S.

    Hi,
    For the case of raghavakumar, Is it really that I need to have LiveCycle Reader Extensions? Is there any other way that could do the same?
    Thank you

  • How can I print a drop down list of favorites I have on the favorites bar?

    How can I print a drop down list of favorites i have on the favorites bar?

    Make a screen shot and print that.

  • How to display a static drop down list for af:query

    Hi
    can anyone tell how to display a static drop down list in af:query panel. JDeveloper version 11.1.1.5.0
    Thanks in advance

    Here is my Usecase
    My View Object consists of (Student ID, Name,Roll No) now i want to include one more attribute say No.of Rooms(i added it as a Transient attribute).
    Now i want to display the transient attribute values in the form of LOV.
    Thanks

  • How can I add categories to drop-down lists or check-boxes?

    hello can I use sub categories or group items by labels when using drop-down lists or check-boxes?

    You can't include sub-menus in a drop-down. What is possible, though, is to populate another drop-down based on the selection made in the first one, or use a pop-up menu. Both things require a script, though.

  • How do I get my drop down lists in alphabetical order?

    Got a new computer and installed Firefox 3.6.10. I moved over my bookmarks, etc. from the old computer. However, all of my drop-down lists are not in alphabetical order any more. And if I use one of the entries, it will sometimes move to a different order than it had been when I clicked on it. How do I get them back in alphabetical order?

    The entries for form field are in current Firefox version is the order that you add them and not ordered alphabetically.<br />
    Maybe an extension like Autofill Forms can sort them.
    I'm not using it, so you need to check that yourself.
    Autofill Forms: https://addons.mozilla.org/firefox/addon/4775
    See also http://forums.mozillazine.org/viewtopic.php?f=38&t=790815&p=8823995#p8823995

  • How can I select from drop-down list and jumping to selected subform?

    I using LC Designer ES2 vers 9. Developing XDP. How can I Select from a drop-down list the appropriate selected subform (jumping to the selected subform on the page)?
    drop-down list...A (jump to subform1)
                             B (jump to subform2)
                             C (jump to subform3)
    subform1
    subform2
    subform3
    ....end of form

    Hi,
    you cannot set focus on a subform but on a field, as only interactive objects can be focussed.
    From a dropdowns exit event the script will look this way:
    switch (this.rawValue) {
              case "A" : xfa.host.setFocus("form1.page2.field1"); break;
              case "B" : xfa.host.setFocus("form1.page2.field1"); break;

  • How do i customize a drop down list in adobe muse without css?

    I'm a complete noob when it comes to anything code. I tinker in design and ran into a bit of a snag. I'm involved in a start up and our coders apparently only know how to code software and back end stuff. I know it's probably not the best route to go, but i'm trying to use adobe muse to do the front end of my companies website that will have a few fields such as drop down lists and sign up forms, etc. Is there a way to customize the look of a drop down menu without using css? Or if i do need to use css how do i use it in muse? Really do appreciate any help you guys can provide!

    You would need to know CSS. If you need to change Muse CSS you can use Firebug in Firefox to find the element ID. Then you would need to add your custom CSS to the head section in your page properties.

  • How do I use a drop-down list to populate a list box

    I'm using livecycle 8:
    I basically have a drop down list with many selections available. I want the function to be when they select from the drop-down the choice they made appears in a list box next to the drop-down box. If they choose to add additional selections from the drop-down list they will add to the list field as well. If anyone has seen one of those on-line job application sites where you have a list of qualities on the left and you can select them and they populate to a list on the right, That is basically what I want.
    I'm not too familiar with adobe quite yet and if you can break the process down as much as possible I would greatly appreciate it.

    Here are my two drop down lists. As you can see I build the second list dynamically based off the value of the year. I want to be able to assign my year to the value I select in this first drop down. How do I do that?? I only want to show games for the year I select. I currently have the year hardcoded to "2009" as you see below. How can i change that to be assigned to the JavaScript value i extract from the first select box?
    <select name="season">
    <option value='2009' selected>2009</option>
    <option value='2008'>2008</option>
    </select>
    <select name="gameselect">
    <%
    try
    String year = "2009";
    String connectionURL = "jdbc:mysql://localhost:3306/ElmwoodExpos";
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection(connectionURL, "root", "thejedster");
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    Statement s = con.createStatement();
    s.executeQuery(sql);
    ResultSet rs = s.getResultSet();
    while(rs.next())
    %>
    <option value="1"><% out.print(rs.getString("GameDescription"));%></option>
    <%
    catch(Exception e)
    %>
    </select>
    Thanks,
    Jed

Maybe you are looking for

  • Issue with posting change note processing using movement type 309

    while processing Posting change note using transaction LT05, i am getting error 'Available quantity is less than selected quantity'. we need the quantity in posting change note to be picked from same storage bin from where it has been picked during t

  • In Message tab message missing while importing wsdl

    My scenario is a file to webservice to Idoc scenario. 1.We first send a request file to XI to start the BPM receive step. 2.the request message goes to a webservice and fetches a response structure and 3.The response structure maps to idoc and finall

  • Possible to have different names on one account?

    Is it possible to have my account name different from the name on the registered credit card? My mother is allowing me to use her credit card for my Apple ID but on things like the iCloud it shows her name, since that's the name on the credit card. S

  • SRM 4.0

    Hi, We are unable to assign purchasing organization and purchase group to the users in the org plan.(PPOMA_BBP). The issue: We one user for whom we have already extended the Purchase organization & purchase Group.Now we have added few more user in th

  • Third party subcontracting

    Hi Expert, I have some subcontractor related problem. In subcontracting process component to be supplied by " Third party" not by our company,we create the purchase order and given the delivery address to the subcontractor address. in this process wh