Create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box

HELP!!! Can anyone please provide some guidance on how to create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box.
I have a form which – based on the department that's selected from a drop-down box – will have different form fields/text boxes, etc, made available.
Is this possible in LiveCycle, if so, can you please provide the script/info - as needed.
Thanks,

In the preOpen event of the second dropdown list you put something like (in formCalc):
if (dropdown1 == 1) then
$.clearItems()
$.setItems("Year, 2 Year,  3 Year")
elseif (dropdown1 == 2) then
$.clearItems()
$.setItems("3 Year,  4 Year")
endif

Similar Messages

  • Having trouble w/ highlighting text (last character never shows it's highlighted), using drop down boxes, and my browser keeps crashing past few days.

    I clear my cache and cookies regularly (1-3 times per day), I have reset firefox, and I have uninstalled and re-installed.
    This is the only browser on my computer I am having an issue with.

    Could you test in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox including hardware acceleration of graphics. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • How to create a dynamic form with bind variables :schema & :table_name

    My application has two LOV's, one to select a schema, and the next to select a table within that schema. I then have a button which passes me to a report which displays the data in that table.schema.
    I now want to create a link to a form where I can edit the record based on the rowid of that table.schema, but it doesn't appear that I can create a dynamic form where I pass the schema.table_name and rowid. Is this possible? Can anyone advise how I can do this? The form builder only wants a fixed schema/table name.
    Thanks in advance.
    Stuart.

    Hi Stuart,
    In this sort of situation, you will need to be a bit creative.
    I would suggest a pipeline function called as if it was a report.
    Then you can pipe out the required fields.
    Since you will have a variable number of fields, you could use two of the multi row field names for your field names and values.
    Then after submit, you can create your own procedure to loop through the fields (stored for you in the Apex package) and update the table as required.
    Not very specific I'm afraid, but it should work.
    Regards
    Michael

  • How to populate data in drop down box dynamically in adobe form?

    Dear Experts.
    I am new to adobe interactive form can anybody please tell me how to fill data in a drop down box dynamically? I am using webservices method.
    Thanks in advance.
    Chitta Ranjan Mahato
    Edited by: mahato123 on Aug 5, 2011 12:16 PM

    you can create a method to populate the context attribute that you are using to map to your dropdown box.
    DATA: node_info TYPE REF TO if_wd_context_node_info.
    DATA: it_table TYPE wdr_context_attr_value_list.
    ** select your dropdown data into it_table and pass it to your context attribute.
    ** here, mine is call PROJ_TYPE - the values should appear in your dropdown.
      node_info->set_attribute_value_set(
         name      = 'PROJ_TYPE'
         value_set = it_table ).

  • Multiple select options in 1 drop down box?

    Hi,
    I have created a form that works perfectly except for the fact that I need to provide multiple select options in the 1 drop down box; for example, I'm asking what product the customer is interested in and his answer could be multiple items such as Soap, Sanitizer, Hand Towels, Face Cloths etc...
    At the moment, the customer can only select 1 item not multiple.
    Is this possible?
    Thanks in advance for the help!

    Hi,
    It is not possible to allow the user to select multiple items in a dropdown list.
    You could use a list box, which does allow multiple selections.
    Good luck,
    Niall
    Assure Dynamics

  • How to make choices in a drop down box change a value in another box

    Hi,  I am fairly new to the world of creating forms in Adobe so please bear with my question if it seems simple.  I have seen where a lot of people are using code and I am very confused.  I am creating an order form and have created a drop down box (combo box).  There are 4 choices in this drop down box.  When the user chooses one of these choices, I would like an amount to appear in a seperate box.  Each choice would have a different amount.  Is this possible?  If so, could someone please give me step by step instructions.  I appreciate any help given!!

    Yes, the best way would be to set your 'Amount' value into the 'Export Value' for each item in the combobox. Then, you can set the calculation for your text field to the following (Be sure to change "ComboBox1" to the name of your combobox):
    var f = this.getField("ComboBox1");
        var a = f.currentValueIndices;
        var s
        if (typeof a == "number") {// a single selection
            s = (f.value);       
    event.value =  s

  • From database to drop down box

    Hi all,
    Suppose I have the following
    String query ="Select name, number from Person";
    I want to put all the "names" in a drop down box and all the "numbers" in a separate drop down box. When I do this:
    while(rs.next()){
    <select="person" onchange="showSelection">
    <option value="<%=rs.getString("name")%>"><%=rs.getString("name")%></option></select>
    I only get the value of the first name in my table. Can anyone help me?

    Hi
    I think you need to do some order. my suggestion is to create an Object that contains name and number like this:public class MyClass {
         String name;
         int number;
         public MyClass(String n,int num){
              setName(n);
              setNumber(num);
         //set and get methods for the data members...
    }next, roll over the ResultSet and create MyClass object each time and add it to a Vector or something like that. usually a drop down box displays many times and it will be very bad if you will query the data base each time you want to display it, thats why i suggest you to save this Vector in a bean or somewhere else (of course, if the data is static).
    than display the vector content like this:<select name="person" onchange="showSelection">
    <%     Enumeration e=vec.elements();
         while(e.hasMoreElements()){
              MyClass m=(MyClass)e.nextElement();
    %>          <option value="<%=m.getName();%>"><%=m.getName();%></option>
    <%     }%>
    </select>
    <%     e=vec.elements();
    %><select name="number" onchange="showSelection">
    <%     while(vec.hasNext()){
              MyClass m=(MyClass)vec.next();
    %>          <option value="<%=m.getNumber();%>"><%=m.getNumber();%></option>
    <%     }%>
    </select>pay attention on how you wrote the select tag: <select="person"...
    and not: <select name="person"...
    hope it helps
    mamtz
    BTW
    think of using struts and custom tags in jsp it will much easier to do this!!!

  • Drop down box question

    Is there a way to allow multiple options to be chosen from a drop down box?  I have the Designer version ES 8.2 that came w/ Acrobat Pro Extended 9.  Thanks.

    I am not aware of any way to enable multiple selections. That said, it would be possible to create a script that concatenates serial selections. (records and joins the selections). This could be displayed in another field, if desired.
    Or, you could script additional instances of your dropdown box with a button. Or, even the exit event of the dropdown box itself.
    Good luck!
    Stephen

  • WebDynPro: Drop-Down Box

    Hi there,
    I'm making a web dyn pro application which has a drop-down box in the initial screen.
    I have populated the drop-down box with values and corresponding texts. When I click on the button that allows me to select a line, it shows me the texts but after the selection is made, it shows me the value in the drop-down box instead of the text.
    Can anyone help on this issue?
    Thanks.
    Regards,
    Edited by: Tabrez Hanif on Jun 22, 2009 1:01 PM

    I think you need to put your text in the label right?   Good Luck!

  • Populating drop-down box from Server XML

    Hello all,
    I'm working on a REST - Lightroom interface, which I'm going to document as expose as a way for anyone to upload pictures to their site.
    Anyway, I need to populate a drop-down with the story names and ids from this XML. Any ideas? I'm a top actionscripter/ruby/etc, but not too familiar with Lua. Looks good though.
    1
    2
    Hope someone can help :)

    Hi there,
    I'm also facing an identical problem and would also like the solution. I've thought about using JavaScript in conjunction with JSP to populate the second drop down box dynamically. But first I need to retrieve the values in the first drop down box from a database and subsequently the 2nd drop down box - I'm thinking that a for loop needs to be used somehow. amishpg, I will let you know If I'm successful.
    Assad

  • Changing row color through a drop down box????

    Is there a way I can get a table row to change color based on the value of a drop down box? I have 3 color options in the drop down list: yellow, green, red. I'm trying to get it so when I select a color in the list (like for example green) the whole row of that table fills with green. I'm searching for an answer and I can't find it. Any help would be greatly appreciated Thanks :)

    Check the code very carfully, you appear to have left off a number of quotes:
    // force to white in case there is no match following
    Page1.Shape.LeaveType.border.fill.color.value = "0,0,0";
    //changes row to red
    if(LeaveType.rawValue == 4) {
    Page1.Shape.LeaveType.border.fill.color.value = "255,0,0";
    //change row to Green
    if(LeaveType.rawValue == 3) {
    Page1.Shape.LeaveType.border.fill.color.value = "0,128,0";
    //change row to Blue
    if(LeaveType.rawValue==2) {
    Page1.Shape.LeaveType.border.fill.color.value = "0,0,255";
    //keep row white
    if(LeaveType.rawValue == 1) {
    Page1.Shape.LeaveType.border.fill.color.value = "0,0,0";
    Or you could use the "swithc(){}" statement:
    var FillColor = "0,0,0"; // white
    switch(LeaveType.rawValue) {
    case 4:
    FillColor = "255,0,0"; // red
    break;
    case 3:
    FillColor = "0,128,0"; // green
    break;
    case 2:
    FillColor = "0,0,255"; // blue
    break;
    case 1:
    break;
    default:
    app.alert("Unkown Leave Type: " + LeaveType.rawValue, 1, 1); // identify unkown leave type
    break;
    Page1.Shape.LeaveType.border.fill.color.value = FillColor;
    You might want to also open Acrobat and check the Debugging Conosole for errors.

  • Can you calculate multiple text boxes to achieve a total value?  If so how is that done?  I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.

    Can you calculate multiple text boxes to achieve a total value?  If so how is that done?  I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.

    Hi sashby51,
    I've moved your discussion to the PDF Forms forum--the folks who visit this forum regularly should be able to point you in the right direction.
    Best,
    Sara

  • How to create a drop down box and text box in screen painter?

    Hi i am totally new to this concept of screen painter..please can any tell me
    how to create drop down box in screen painter?
    How to create or display default date and time values?
    How to create text box for giving comments?
    How to store the records that we are entering in a table?
    Please can any one send me the procedure for creating all these its very urgent useful information will be surely rewarded.

    Hi,
    Check all these.
    1.how to create drop down box in screen painter?
    To get Drop Drown Box on screen .
    Follow these steps.
    1.
    Go to T.Code SE51 and Select Laypout for the Screen.
    2.
    Double click on the field for which u want Dropdown box.
    3.
    Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
    4.
    Save and Activate ur screen .
    5.
    Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
    6.
    The following code should be written under PROCESS BEFORE EVENT in the MODULE.
    TYPE-POOLS :vrm.
    DATA:
      i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
      w_natio LIKE LINE OF i_natio.
    DATA:
    BEGIN OF i_t005t OCCURS 0,
        land1 TYPE t005t-land1,
        natio TYPE t005t-natio,
    END OF i_t005t.
    IF i_t005t[] IS INITIAL.
      SELECT land1 natio
         FROM t005t
           INTO TABLE i_t005t
       WHERE spras = sy-langu.
      IF sy-subrc = 0.
      LOOP AT i_t005t .
          w_natio-key = i_t005t-land1.
          w_natio-text = i_t005t-natio.
          APPEND w_natio TO i_natio.
          CLEAR w_natio.
      ENDLOOP.
      ENDIF.
    ENDIF.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
                          id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
                    values = i_natio
    EXCEPTIONS
       id_illegal_name = 1
                OTHERS = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    2.1.How to create or display default date and time values?
    1.
    create input field for DATE and TIME on screen.ex. DATE1 and TIME1 are screen field names .
    2.
    Just assign SY-DATUM to DATE1 and SY-UZEIT to TIME1 under PROCESS BEFORE EVENT.
    3.How to create text box for giving comments?
    1.
    Define one variable in the TOP include with type STRING means Global variable.
    2.
    Create one input field by giving screen field name which u have defined in the above step.
    4.How to store the records that we are entering in a table?
    For this case.. Create one table control. you can select one record and create record in the Z table by pressing button on Application toolbar..
    Check the following steps to handle Table control.
    1).
    U should take one variable in your internal table or in structure which
    is used for table control fields
    ex :
    data :
    begin of itab occurs 0 ,
        mark type c , "This is to select the record.
        matnr like mara-matnr ,
        matkl like mara-matkl,
        maktx like makt-maktx,
    end of itab .
    Controls: TABC types TABLEVIEW using screen 100.
    2).
    This mark variable should be given in Table control properties.
    follow the path
    double click on the table control-->attributes .->select
    w/SelColumn and in that itab-mark. Check in the figure.
    [Table control properties screen|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
    3).
    After that. Take this example.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITAB WITH CONTROL tabc
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    LOOP AT ITAB.
       Module read_table_control.
    ENDLOOP.
    module user_command_0100.
    In this Module read_table_control, You should write the following code
    MODULE read_table_control INPUT.
    MODIFY itab INDEX tabc-current_line."( This will update the
    "ITAB table MARK field with 'X ' whatever we have selected
    "on table control.)
    ENDMODULE.
    4)
    If you want to Delete some of the records from Table control
    follow this code …Create one pushbutton and give Fucnction code to that
    and write below code
    CASE OKCODE.
    WHEN 'CREATE'.
    LOOP AT itab WHERE mark = 'X'.
    "Use UPDATE statement to create new record.
    ENDLOOP.
    ENDCASE.
    I hope that you will get something.
    Regards,
    Venkat.O

  • When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified

    When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified because it is already in use ??? What am I doing wrong?

    settings -> iTunes & App Store
    click on apple ID listed there
    select Sign Out
    sign in with the proper account
    from then on, when the store ask for your password it should be with the correct ID

  • How do I use Javascript to populate a text field based on a selection from a drop down box?

    Greetings,
    I have virtually no experience with JavaScript and I am trying to figure out how to add some basic automation features to an Adobe form.  I have a drop down box called "Hospital_Name" that will contain approximately 7 possible selections.  When the user makes a selection, I would like to have the text field (called "Hospital_Address") below the drop down box populate with the corresponding address for the selection.  I have the "Hospital_Address" text field configured for multiple lines and would like the address to have a line break between the street address and the city/state/zip.
    For example, if the user selected "Hospital 1", the text field would display:
    123 Main St
    Anytown, CA 12345
    Any help or examples you can provide would be greatly appreciated.

    You have the element names within the object within brackets.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    // some debugging code to see location names;
    console.show();console.clear():
    for(I in Location) {
    console.println(I);
    // end debugging code;
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;
    This is not a beginners task but requires a fair amount of knowledge about the structure of objects, defining strings, and structure of arrays.
    Are you sure you have all the field names correctly spelled and capitalized?
    Do you get any error in the JavaScript console?
    Just trying the line that defines the "Location", I get the following error:
    SyntaxError: invalid property id
    1:Console:Exec
    undefined
    All the form field in a PDF are processed by using JavaScript and any error in any script will stop JavaScript processing.
    It might help to have a link to the problem form.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;

Maybe you are looking for

  • How can I see POs in SUS

    Hi experts How can I see all POs of all vendors in SUS? tHANKS Jossana

  • Problem installing Flash 9.0 I get "access error code"

    Up until about a week ago I had Flash installed like every other human on the planet. But then one night flash was gone from my internet. Everywere I went I got the little puzzle piece icon telling me to go and reinstall Flash 9. So I follow the link

  • Photos sent through ePrint are washed out - Help

    I just ran a test sending 3 photos from my ipad via email to my HP Envy 100 e-Printer and they all appeared washed out. I then sent the same 3 photos directly to the HP Envy 100 e-Printer using the HP iPrint app and they were nice and brilliant -- co

  • Excise Invoce - Stock Transfer Scenario

    Dear Sir, Excise values are not flowing in excise invoice when I am trying to create excise invoice using J1iin. This is happening only when I am creating an excise invoice in case of stock transfer (billing type is copy of proforma invoice). Excise

  • CANON EOS 6D Moire

    Halo, i have been using Canon 60D for videomaking with great success and ease. Upgraded to 6D, using same custom picture style ( sharpness 0, contrast -4, saturation -2, color tone 0 ) to prevent moire, but cant get rid off it. Happens especially wit