Dropdown's Selection to Affect/innactivate Other Fields in Adobe LiveCycle

Hi. I have a table where each line is an entry. The first field of the line is a dropdown selection. I would need this to work where if I select nothing, the rest of the fields on the line are innactive, or read only, or when I select some options from the dropdown some fields become active. Also there are more dropdown fields on the line. They should only allow to be selected certain options from the list depending on the selection of the 1st field.
There are also 2 numeric fields who do some calculations, both do the same thing, however, for example, selection A in the 1st field involves tracking total TimeTotal1 in NumericField1 and selection B in the 1st field involves tracking total NumericField2. In other words, when selecting A, the calculation will be dispayed in NumericField1 while NumericField2 is not displaying anything, and if selecting B, the calculation will be dispayed in NumericField2 while NumericField1 is not displaying anything.
Any help would be great. I am not good at all with any Javascript coding... Thank you!

Hi,
In the exit event of the DropDown write th efollowing script.
if (this.rawValue == null)
          Field1.access = "readOnly"; // Those fields which shall remain inactive.
          Field2.access = "readOnly";
          DropDownList2.access = "readOnly";
else
          Field1.access = "open"; // Those fields which shall remain active. 
          Field2.access = "open";
          DropDownList2.access = "open";
          DropDownList2.addItem('A'); // Those specific items that need to be populated in the 2nd DropDown.
          DropDownList2.addItem('B);
if(DrowpDownList.rawValue == 'A')
          Field1.rawValue == "That Value you want to display";
else
            Field2.rawValue == "That Value you want to display";  
Thanks,
Bibhu.

Similar Messages

  • URGENT help please. Problem creating Chinese language text field in Adobe LiveCycle.

    A client requested to create an employee details form in which few text fields has to be in Chinese language. I selected "Arial Unicode MS" for that fields. In final PDF I am able to insert text in Chinese text fields in Acrobat. But I cant insert text when i opened the final PDF in Adobe Reader. (only these Arial Unicode MS fields are disabled). All other fields (English) are in Arial font., they are working in both (Acrobat and Reader). As these forms will be distributed to people who may don't have Acrobat and only the Free Adobe Reader. Can someone please advice me how to solve this problem.
    Thank you
    - Amal

    Make sure the format of the date strings provided by the calendar is what you are expecting. Or use the "formattedValue" for the input strings.

  • How can I make a dropdown box populate with values from other fields?

    I am trying to create a NCAA bracket where they select teams from a dropdown menu. For example, they choose which teams win in game 1 and 2 through a dropdown box. The winner of games 1 and 2 then play each other, so how can I populate the dropbox with their selections for game 1 and 2?
    Game 1 winner --
         (game 9)        |--- Game 9 winner
    Game 2 winner --
    Game 9 winner needs to populate with their selections from game 1 winner and game 2 winner.

    I would look at using the setItems Acrobat JavaScript method.
    Have you considered using  a Mouse Up action for "Game 1" and "Game 2" to fill "Game 9"

  • Problem with Date/Time field in Adobe LiveCycle

    I am trying to create a form that has a check-in and check-out dates. I want the user to enter those dates and then have the form automatically compute how many nights the user intends on staying.
    I have two fields, CHECKIN and CHECKOUT, set up as text fields. My third field, NIGHTS, has the following script to do the calculation:
    var strStart = CHECKIN.rawValue
    var strEnd = CHECKOUT.rawValue
    if(strStart.length && strEnd.length)
    var dateStart = util.scand("mmm d, yyyy",strStart);
    var dateEnd = util.scand("mmm d, yyyy",strEnd);
    var diff = dateEnd.getTime() - dateStart.getTime();
    var oneDay = 24 * 60 * 60 * 1000;
    var days = Math.floor(diff/oneDay);
    this.rawValue = days;
    else
    this.rawValue = 0;
    NOW...this is fine if the user inputs a four-digit year. If not, it's trouble. SO, what I want to do is change the CHECKIN and CHECKOUT fields to the date/time field so they select the date off the pop-up calendar.
    When I make the changes, I can't get the script to work for the NIGHTS field.
    CAN ANYONE HELP THIS NEWBIE?

    Make sure the format of the date strings provided by the calendar is what you are expecting. Or use the "formattedValue" for the input strings.

  • How do I use switch and case statements to fill more than one other field?

    Hi all,
    I'm new to the community.
    I'm trying to make an existing form more user friendly for my coworkers. I want to use a switch and case approach in a drop-down list field so that the selection fills two seperate other fields with different info related to the selection.
    I can already do this with one field, but if I add a second target field under an existing case the text doesn't appear there when I make the selection from the dropdown.
    Basically, I'm asking if I can do this:
    switch 
    (sNewSel){
       case "1": // Selection 1    Row2.Field1
    = "text for field 1";
        Row1.Field2 = "text for field 2"; 
        break;
    etc.
    It works if the "row1.field2" option isn't there, but not when it is present.
    Any takers?

    I'm not sure if I will be able to send you the form. There may be too much to redact.
    Would this last bit of code in the cell affect anything?
    if 
    (bEnableTextField)
    {Row2.Field1.access
    = "open"; // enable field
    Row2.Field1.caption.font.fill.color.value= "0,0,0"; // set caption to black
    That is, do I also need to repeat the same thing for the second target cell (Row1.Field2)?
    What would be possible hang ups that would prevent it from working correctly?
    Dave
    By the way, I'm not sure if my other attachment posted. I am trying again.

  • Auto-fill calender date and validate other fields depending upon selected date for infopath forms

    I have a calender box in infopath form which i want to autoselect when user opens the form..Ex..i am opening form on 14th march the calender should show as 19th march and also i have to perform few validation and action such as if i am selecting date with
    more than 5 days gap should open other field which is a dropdown..How can i perform this..

    Do you have Excel Services? if so, this article may be of use to you:
    http://sergioblogs.blog.co.uk/2013/01/08/infopath-2010-and-excel-services-in-sharepoint-15407321/
    You can configure an excel workbook to validate if a date is a working day and then use formulas to workout the working date for 5 days after the date you enter, then link your InfoPath form to connect to the excel workbook and return the result of your
    calculation.
    Regards
    Sergio Giusti
    http://sergioblogs.blog.co.uk/
    Whenever you see a reply and if you think is helpful, click " Vote As Helpful". And whenever you see a reply being an answer to the question of the thread, click "
    Mark As Answer".

  • Populating other fields in a form based on the selection in a combobox field

    We have done a form(masterdetail) in which we have a combobox field.When we make a selection in the field we require some two other fields to be automatically populated retrieving data from a table(which has the details required) based on the selection made.For eg. Selecting emp id(combobox) should populate empname and salary automatically in the form.Is this possible?If so how can this be done?
    Thanks & Regards,
    Jayanthi.S

    This is what I did following Michael's suggestion and it works fine :-
    1> Created a dynamic LOV named LOV_EMPNO as:-
    select empno,empno from scott.emp
    2> Started creating a form named FORM024_EMP2 on scott.emp.
    3> On reaching the Formatting and Validation section, I chose the EMPNO field in the left frame.
    In the right frame for EMPNO, I changed the item-type to Combobox and selected the lov LOV_EMPNO.
    Then I went to the Javascript handler section for EMPNO, chose the Javascript event onChange and in the
    adjacent Textarea, I wrote:-
    popdetails(this);
    We will create the javascript function popdetails() in the Additional pl/sql section.
    4> Click next and goto the Additional PL/SQL section and I wrote the following code in
    "...after displaying the page" area.
    (You can write this either in
    before displaying the page,
    before displaying the form,
    after displaying the form,
    after displaying the page).
    declare
    type tvcarr is table of varchar2(2000) index by binary_integer;
    l_empno_arr tvcarr;
    l_ename_arr tvcarr;
    l_sal_arr tvcarr;
    begin
    select empno,ename,sal
    bulk collect into
    l_empno_arr,l_ename_arr,l_sal_arr
    from scott.emp;
    htp.p('
    <script>
    var empdets = new Array();
    empdets[0] = new Array("","");
    for i in 1..l_empno_arr.count
    loop
    htp.p('empdets['||l_empno_arr(i)||'] = new Array("'||l_ename_arr(i)||'","'||l_sal_arr(i)||'");');
    end loop;
    htp.p('
    function popdetails(ele)
    var val = new Number();
    var thisform = ele.form;
    val = parseInt(ele.value);
    if (isNaN(val))
    val = 0;
    for (var i = 0; i < thisform.length; i++){
    if (thisform.name == "FORM024_EMP2.DEFAULT.ENAME.01")
    thisform[i].value = empdets[val][0];
    else if(thisform[i].name == "FORM024_EMP2.DEFAULT.SAL.01")
    thisform[i].value = empdets[val][1];
    htp.p('</script>');
    end;

  • Infopackage Abap Routine (Selection based on other fields?)

    Dear Friends,
    I know that Abap routine is used in infopackage to select or restrict using complex data selection.
    My requirement is to restrict Material no field based on 4 other fields. Is that possible?
    Actual condition is  to load Material no only if other 4 fields combination is new.
    Pls help.
    Guru

    Hi,
    Yes you can do this at infoPackage level using the ABAP routine.
    First read the Active Table of the DSO into internal table and do a lookup for the required four fields combination.
    If these four field are new allow the material number.
    Refer the below link for more help.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a05ac9fa-f44c-2c10-dbb8-ef54c102707c
    Regards
    Manjula.B

  • How to populate one dropdown on select of other dropdown in a table

    Hi
    My requirement is that I want to populate one dropdown on selection of some value in other drop down.The two dropdown are present in two columns of a Table.
    Can any body help for the same.
    Regards
    Nitin

    Hi,
    Try This
    Bind "enable" properties of Both DD1 and DD2 to
    context attributes of type boolean. DD1Enable,DD2Enable
    1: set their value to false intially 
      wdContext.currentContextElement.setDD1Enable(false);
      wdContext.currentContextElement.setDD2Enable(false);
      Bind the selected property of the table to a
      Context attribute of type boolean(Initially false), say "selected"
    2: Then use check box in the table to get current lead selection
      write in "onToggle" action  of checkBox
    int len=wdContext.nodeTable().size();
    for(int i=0;i<len;i++)
             if(wdContext.currentTableElement().getSelected()==true)
                 wdContext.currentDD1Element().setDD1Enabled(true);
                 wdContext.currentDD2Element().setDD2Enabled(true);
             }else
         wdContext.currentDD1Element().setCountryEnabled(false);
         wdContext.currentDD2Element().setStateEnabled(false);
    This is how u get leadselection and able to change particular row in the table
    Regards
    Lakshmi

  • Cannot select fields for calculating other fields~

    Help -- I am tryiing to get certain fiels in a form to calculate based on selection of other fields.  The fields to be selected already have values in them.  (The same format I have used for several years, just new set of forms)
    I get through the point of setting up the field properties to calculate and I select Sum of...   Then it simply will not let me select any fields to use for calculations -- unless I select all fields.
    Please -- this is time sensitive and urgent any help responses needed and welcome!

    Sounds like you are having issues with Acrobat and not FormsCentral. You would get a better help if you post your question on the Acrobat's forum
    http://forums.adobe.com/community/acrobat/forms
    Gen

  • SELECT DISTINCT only on some fields but returning other fields.

    As the thread says I need to select distinct rows with some fields but I need to show the associated data of other columns in the same table.
    Simple Example
    SUPPOSE THE TABLE INFO:
    INFO(ID, NAME, TITLE, NUMBER, TELEPHONE, FAX, DESCRIPTION, TOPIC);
    The table info could have null values in all the columns except for the ID. And there could be the same information for: Name, Title, Number, Telephone, Fax info in a lot of rows.
    With the following statement I get distinct rows based on the name, title, number, telephone, fax and i get assured that the row with name in null is not returned.
    SELECT DISTINCT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX FROM INFO P WHERE TRIM(P.NAME) IS NOT NULL;
    returns 1400 rows;
    The problem is that I need the DESCRIPTION and TOPIC columns of the 1400 distinct rows.
    I have tried the following, but without sucess because the statement is returning 1350 rows, so there are 50 rows losted:
    SELECT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX, P.DESCRIPTION,P.TOPIC
    FROM INFO P , (SELECT DISTINCT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX FROM INFO P WHERE TRIM(P.NAME) IS NOT NULL) R
    WHERE P.NAME= R.NAME AND P.TITLE = R.TITLE AND P.NUMBER = R.NUMBER AND P.TELEPHONE = R.TELEPHONE AND P.FAX = R.FAX;
    Could anybody give me some help?
    pd: Don´t ask why the table has been designed in that way... I'm trying to fix that ¬¬
    Edited by: user6483610 on Sep 1, 2010 6:29 PM

    @Raj Mareddi: I have tried that aproach and it gives the ORA-00979: not a GROUP BY expression
    @PhoenixBai: You put me to think... jajaja i haven't think about it, actually there are more distinct values if I put the DESCRIPTION and TOPIC values in the query and yes I was hoping that the query choose for me... So I think that theres no way, the quality of the data is really bad and I have to deal with it. Thanks anyway!
    By oher hand theres no way to do this thing in Oracle? the aproach of Raj makes sense but the ORA-00979: not a GROUP BY expression says that you must remove the other columns that are not in the group by function.

  • Pages:  How can I sort one column of words and not have it affect the other columns?

    How can I sort one column of words and not have it affect the other columns?  I have opened the inspector to the edit columns and rows under Table.  It will sort the column, but then it changes the other colums as well.  I know that if I use Numbers, it will work, but I want to know how to do the same thing in Pages.

    Hi Peter,
    Numbers sorts full rows on values in selected column(s). The technique for sorting a single column is essentially the same as Jerry is describing for Pages tables—separate the (data in the) column to be sorted, sort it, return it to the table.
    In Numbers the actual column may be separated from the original table, sorted, then returned. In Pages, the data must be extracted, sorted, then pasted back in, overwriting the unsorted data (if it was left in the original table).
    iWork tables follow a database model in which each row is a Record, and each column holds a Field within the records.
    As evidenced by the current question (and several similar questions arising in the Numbers community) that model doesn't apply to the way some users, especially some who come in from the MS Excel world, use tables.
    With Excels model—islands of data on a single large table, the ability to sort one or a selected few columns of data makes sense. One 'island' may comprise only cells AA21:AH50. Sorting that small 'table' should be possible without disturbing the rest of rows 21-30, which are probably part of one or more other 'data islands' in the sea that is a MS Excel spreadsheet.
    In Numbers, each of those 'islands' would be a separate Table, and that Table would be sortable without disturbing other Tables in the document.
    Regards,
    Barry

  • Sorting and filtering by select-multi person or group field in the list in SharePoint 2013

    Hi everybody,
    In SharePoint 2013, I have defined a column as "Person or Group" field, which you allow for multiple selections. when I try to sort/filter it by this field in the list. The field doesn't show up in the dropdown. If I changed "Allow multiple
    selections" option to "No" by clicking the column name to edit it in "List Settings", the field can show up sort in the dropdown.
    How about support sorting and filter by select-multiple "Person or Group" field in sharepoint 2013?
    BTW, in SharePoint 2010, it can support this issue no matter what the "Allow multiple selections" option the request is.
    Any help would be great!
    Thanks,
    Jodie

    Hi Jodie,
    Can you please give this as a try.
    To fix the Filter Issue on Assigned To Column. We need to run the following scripts.
    The field which allows more than one values or which allows multiple selections. The multi-valued fileds are non-sortable,
    non-filterable. Multi-valued fields cannot be indexed
    $web=Get-SPWeb
    $list=$web.Lists[] $field=$list.Fields[ColumnName] $strSchema=$field.SchemaXml $str=Schema$strSchema.Replace("Sortable=`"FALSE`"","Sortable=`"true`"")
    $field.SchemaXml = $strSchema
    Krishana Kumar http://www.mosstechnet-kk.com
    Thanks for your reply, I have tried to run the scripts, but it still cannot work. The following is my scripts:
    $web=Get-SPWeb 'http://cst-server-01'
    $list=$.web.Lists["Product Request"]
    $field=$list.Fields["Applicant"]
    $strSchema=$field.SchemaXml
    $str=Schema$strSchema.Replace("Sortable='"FALSE'"", "Sortable='"True'"")
    $field.SchemaXml = $strSchema

  • Fill DDL based on other field values in offline interactive adobe form

    Hi,
    I have a requirement where in i need to fill the values for a dropdown list  based on 3 other field values in offline adobe interactive forms which uses web service to interact with SAP.
    Note: I read many blogs and posts in SDN , but couldn get much info ab the same, so posting a new thread.
    Thank you.
    Regards,
    Soumya

    Hi Soumya,
    It is possible but a little bit tough and will make your form heavier.
    The solution is advisable only when there is not very much data required for the drop down(May be not more than 500 values as it will create performance issue).
    You can create a hidden table on the form contaning data for all the combinations. Depending on the selection of another 3 fields you can write the code to select only those values from this hidden table which are applicable to that selection. These values you can add to the drop down list removing the previous values.
    Only you have to do is on calculate or vlaidate event of target DDL you have to write your code.
    Pseudocode:
    1. Clear your DDL using deleteItem() method.
    2. Loop at your hidden table.
    3. Inside the loop check for applicable entries depending on selection in other 3 fields.
    4. Select the appropriate vlaues
    5. Add using additem method().
    Refer formCalc or JavaScript help for the appropriate code.
    Hope this will be helpfull.
    Regards,
    Vaibhav

  • Dropdown in select options

    Hi experts,
    Can a dropdown be displayed in a select option.
    eg:
    att type:   awart- low    awart-high
    Can this awart-low and awart-high have a dropdown to select data instead of a search help.
    Because when I tried to create a select option and added
    wd_this->m_select_options->add_selection_field( i_id = 'FIELD'
      it_result = lr_range_table
      i_as_dropdown  = abap_true
      it_value_set   = lt_value_set ).
    It displays like a parameter  eg:   aat type  dropdown box
    Can you please help

    Yes - drop-down always renders as a single field not a range.
    you can see the code concerning this in method RENDER_SELECTION_SCREEN_ITEM of class CL_WDR_SELECT_OPTIONS.
         elseif i_field-m_as_dropdown = abap_true.
    *       do the dropdown case
    *       => add something to skip the sign option icon space
            prefix_id mc_invisible_element_id i_field-m_id id.
            lr_invisible_element = cl_wd_invisible_element=>new_invisible_element(
                                     id = id view = lr_cur_container->view ).
            lr_matrix_data = cl_wd_matrix_data=>new_matrix_data( element = lr_invisible_element ).
            lr_invisible_element->set_layout_data( lr_matrix_data ).
            lr_cur_container->add_child( lr_invisible_element ).
    *       => add the dropdown as dropdownbykey
            prefix_id mc_dropdown_id i_field-m_id id.
            concatenate i_field-m_id '.LOW' into path.
            lr_dropdown = cl_wd_dropdown_by_key=>new_dropdown_by_key(
                            id                = id
                            bind_selected_key = path
                            read_only         = i_field-m_read_only
                            state             = state
                            explanation       = i_field-m_explanation
                            tooltip         = i_field-m_tooltip
                            view              = lr_cur_container->view ).
            lr_label_low->set_label_for( id ).
            lr_matrix_data = cl_wd_matrix_data=>new_matrix_data( element = lr_dropdown ).
            lr_dropdown->set_layout_data( lr_matrix_data ).
            lr_cur_container->add_child( lr_dropdown ).
          else.
    Just one field and no option for any second 'HIGH' field.
    Cheers,
    Chris

Maybe you are looking for

  • Strange Admin password change Apex 3.01

    Hi, I recently installed apex 3.01successfully and copied the Admin user password during the install. I successfully logged in later with that password into the Admin account and set up a couple workspaces. Yesterday I tried to log in with that same

  • How can I use ASCII Characters on the iPad?

    I have an iPad (1) and use iOS 4.3.5. Is there an easier Way of using ASCII Characters than having to use the "copy-Paste" procedure? If not, can we expect to see the feature of entering the ASCII code straight through the standard keyboard soon?

  • Ipod touch generation 2 syncing

    every time I go to sync my Ipod it repeatedly tells me I have an unknown error 13019. I have tried to download the new itunes to see if that made a difference and that didnt help. I also deleted some songs to see if that would help also. I have no be

  • I deleted my photo booth how can i get it back?

    i deleted my photo booth how can i get it back?

  • VAT value

    Dear all, 1 In case of Traders Basic Value + Vat = Purchase value E.duty +Vat = Tax Vat 2 In case of Manufacturers Basic valueE.dutyVat = Purchase Value E.duty +Vat = Tax Vat The above mentioned report should be as under: 1 In case of Traders Basic V