Show/Hide Sub Forms in LiveCycle ES 8.2

Hello All,
I am using Livecycle to create a form and want following functionality:
If a particular value is selected from drop-down box, it should hide/show a sub-form.
However, I am not able to do it. I looked at adobe livecycle docs, Adobe user forums, and GOOGLE...but fail to run the code.
I have used following PDF as example:
http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ChangingObjectPresen ce.pdf
The code below is written on drop-down box and I have BMD_Form as subform
----- form1.POS.Emphasis_info.subformOptions::change - (JavaScript, client) ------------------------
switch (xfa.event.newText) {
case "Invisible":
form1.POS.BMD_Form.presence = "invisible"; or
break;
case 'Hidden':
form1.POS.BMD_Form.presence = "hidden";
break;
default:
form1.POS.BMD_Form.presence = "visible";
break;
Thanks
Viral

I found it after banging my head....

Similar Messages

  • How to show/hide a form field?

    Hi all,
    Is it possible to programaticlly show/hide a from input field at runtime?
    best

    You can use javascript to achieve this and following is the code I'm using in one of the forms to hide a field when this form is being opened.
    ..after displaying page...
    declare
    v_id number(10);
    begin
    v_id:=p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ID',
    p_index => 1
    If v_id is null then
    htp.p('<SCRIPT LANGUAGE="JavaScript">
    function get_index(p_name) {
    var i;
    for (i=1; i<document.forms[0].length; i++){
    if ( document.forms[0].elements.name == p_name) {
    return i;
    var j = get_index("FORM_NAME.DEFAULT.FIELD_NAME.01");
    document.forms[0].elements[j].style.visibility="hidden";
    </SCRIPT>');
    End If;
    -Krishnamurthy

  • Hide or show a sub-form whith check a check box

    Hi,
    I don't know how to do this.
    I can't put it in "on click" because click can check or uncheck the box.
    Pls help me
    thx
    Nath

    Hi Niall,
    I'm having a similar problem and I'm wondering if I might have some of your time.
    I think I'm attempting to program my form to perform the same function as Nath.  I'm wondering if it's necessary to wrap the checkbox that corresponds with the text I'm trying to control (hide/show) within the same subform.  Right now the checkboxes are not wrapped within the same subform as my text and the click event is not working as I expected.
    Thanks for your help, I appreciate it very much.
    Amanda

  • Is there a way to show / hide email campaign newsletter opt-in form based on current opt-in status?

    We have a secure zone with email campaign opt-in as both a part of the registration form and as a stand alone form for users logged into the secure zone.
    We want to only show the opt-in form to users who are not already registered for the campaign, but cannot find a way to do this via modules / tags / liquid / API.
    I have searched the forums and cannot believe this is not possible. If not possible, it should be put on the list of development requests.
    Is this possible and if not, any suggestions?
    The best workaround I can think of is to use a CRM field to track campaign opt-in status and then js/css or liquid to show / hide the form.
    Thanks.

    You won't be able to have a page showing 24 charts per host.
    I really think that it is a bad idea to create a group per host, just to have the ability to add many charts.
    The maintenance effort will be a big penalty.
    Regards
    Rob

  • ALV user interface - hide details rows - show only sub-total rows

    Is there a way using the ALV interface for a user after sub-totalling to hide all the detail rows and only show the sub-total and grand total rows?

    Sure, you can force this in the code.  Please see the sample program.
    report zrich_0004
           no standard page heading.
    type-pools slis.
    data: fieldcat type slis_t_fieldcat_alv.
    data: sort     type slis_t_sortinfo_alv.
    data: begin of ivbap occurs 0,
          vbeln type vbap-vbeln,
          kunnr type vbak-kunnr,
          vkorg type vbak-vkorg,
          netwr type vbap-netwr,
          end of ivbap.
    * Selection Screen
    start-of-selection.
      perform get_data.
      perform write_report.
    *  Get_Data
    form get_data.
      select vbak~vbeln vbak~kunnr vbak~vkorg vbap~netpr
                  into table ivbap
                          from vbak
                             inner join vbap
                                on vbak~vbeln = vbap~vbeln
                                      up to 100 rows.
    endform.
    *  WRITE_REPORT
    form write_report.
      data: layout type slis_layout_alv.
      layout-totals_only = 'X'.
      perform build_field_catalog.
      perform build_sort.
    * CALL ABAP LIST VIEWER (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                it_sort     = sort
                is_layout   = layout
                it_fieldcat = fieldcat
           tables
                t_outtab    = ivbap.
    endform.
    * BUILD_FIELD_CATALOG
    form build_field_catalog.
      data: fc_tmp type slis_fieldcat_alv .
      clear fieldcat. refresh fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Sales Org'.
      fc_tmp-fieldname  = 'VKORG'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '4'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Customer'.
      fc_tmp-fieldname  = 'KUNNR'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '10'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'SD DOC'.
      fc_tmp-fieldname  = 'VBELN'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '10'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Net'.
      fc_tmp-fieldname  = 'NETWR'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '15'.
      fc_tmp-do_sum  = 'X'.
      fc_tmp-datatype = 'QUAN'.
      append fc_tmp to fieldcat.
    endform.
    *       FORM build_sort                                                *
    form build_sort.
      data: tmp_sort type line of slis_t_sortinfo_alv.
      clear sort. refresh sort.
    <b>
      clear tmp_sort.
      tmp_sort-fieldname = 'VKORG'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      append tmp_sort to sort.
      clear tmp_sort.
      tmp_sort-fieldname = 'KUNNR'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      tmp_sort-expa      = 'X'.
      append tmp_sort to sort.
      clear tmp_sort.
      tmp_sort-fieldname = 'VBELN'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      tmp_sort-expa      = 'X'.
      append tmp_sort to sort.</b>
    endform.
    Regards,
    Rich Heilman

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • Show/hide in an ADDT form

    has anyone successfully used a show/hide script of any kind in an ADDT form?
    What I'm trying to do is, I've got Yes and No radio buttons.  If Yes is clicked, a text box appears in the row below.
    If No is clicked, no change occurs.
    I had one that was working but now all of the sudden it is no longer working.  What happens now is when you arrive on the page, the text box that is supposed to be hidden, is visible.  However, when you click No, it disappears and if you click Yes, it reappears.
    Below is the code.  I'm thinking there must be a conflict between the javascript code below and ADDT.  Any help is appreciated!  Thanks!
    <SCRIPT LANGUAGE="JavaScript">
    function showhide1(id,str)
        if (document.getElementById)
            obj = document.getElementById(id);
            if (str == "show") //obj.style.display == none
                obj.style.display = "";
            else if (str == "none")
                obj.style.display = "none";
    </script>
      <tr><td align="right">Will anyone in your party require translation services at Open House?</td> <td> <input type="radio" name="translation" value="Yes" onClick="showhide1('display','show');">Yes<input type="radio" name="translation" value="No" checked  onClick="showhide1('display','none');">No</td></tr>
            <tr id="display"><td align="right" > In what Language? </td> <td> <font color="red">*</font> <input type="text" name="language"></td></tr>

    OK, I added a function that fires on page load so that the conditional row will be displayed if the Yes radio button has been checked.You should now remove the CSS rule for the conditional row. I tested the code with Firefox 3 and IE8 and it works but it is by no means complete.
    <script type="text/javascript">
    window.onload = showRow;
    function showRow() {
    if (document.getElementById("radioYes").checked)
    {document.getElementById("display").style.display = ""}
    else
    {document.getElementById("display").style.display = "none"};
    function showhide1(id,str)
        if (document.getElementById)
            var obj = document.getElementById(id);       
            if (str == "show") //obj.style.display == none
                obj.style.display = "";
            else if (str == "none")
                obj.style.display = "none";
    </script>
    The HTML code for the two table rows should now be:
    <tr><td align="right">Will anyone in your party require translation services at Open House?</td>
    <td><input name="translation" type="radio" onClick="showhide1('display','show');" value="Yes" checked="checked" id="radioYes">Yes
    <input type="radio" name="translation" value="No" id="radioNo" onClick="showhide1('display','none');" >No</td></tr>
    <tr id="display">
    <td align="right">In what Language?</td>
    <td><font color="red">*</font>
    <input type="text" name="language"></td></tr>

  • Show/Hide action & Submit Form action on mobile apps

    I want to set up multiple small "help" buttons in various places on my PDF form so that when the user clicks on them, additional information is shown.
    However, my understanding is the the show/hide action is not supported on most mobile devices using the free Adobe Reader.
    Do tool tips work on mobile devices?
    Does the Submit Form work on mobile devices?
    Can anyone help with a suggestion/workaround?

    Hi,
    bind the value properties of the input fields to a managed bean in viewScope. E.g. value=#{viewScope.managedBean.attributeName}. This then guarantees that the bean content survives the request and the data is still there
    Frank

  • Show-Hide Navigation with sub-nav

    Hi,
    I'm trying to create a navigation that will show/hide on
    mouse on/off. Now, I've managed to get the first level to work, but
    struggling with the sub-nav.
    I have an MC (that contains the animation) that uses hitTest
    for the show/hide which allows the buttons inside the mc to work.
    I've tried a few ways to get the Sub-Nav to work but banging
    my head against a brick wall... can anyone help or point me in the
    right direction??
    You can get the files from here if required:
    Flash
    Files (FLA/SWF)
    Files are CS3 - AS2.0
    Mucho Appreciato!

    Found method, just using
    AdfmfContainerUtilities.showNavigationBar();
    AdfmfContainerUtilities.hideNavigationBar();

  • How to conditionally show sub-forms depending on a data connection file?.

    Hi, let say I have a form that shows a car specification and consists of N parts (sub-forms):
    part I
    part II
    part III
    part N
    Those parts are sub-forms, and given a specific xml data connection file, I need to show the parts if and only iff certain elements of that xml exist or not. Let say, part II is called: "airbag", but if the car doesn't come with airbag (in the xml the airbag section doesn't exist) then the subform should not appear.
    How can I do this?.
    Thanks!.

    Hi,
    This is the sort of thing you can do with a subformset with the "Select One Subform from Alternatives" option.
    There are some examples that come with the install of Designer, from the Designer install directory look in .\EN\Samples\Forms\SubformSet (assuming you want the english one, otherwise change the EN bit).
    Bruce

  • Is it possible to show/hide dynamically columns in RDLC form?

    We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
    We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
    Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?

    Depends on what you mean dynamically, you still need to press the view report button.
    What you can do is right click on the column you want to be able to hide/display in design mode,
    click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column

  • APEX4: Is it possible to show/hide a field on form based on Radio selection

    Hi,
    On a form, I've a radio group (with two values) and two select list. Based on the selection in radio group, I want to show/hide the select list.
    Like, when the user clicks Radio Group Value - RG_A, SL_A has to be visible, and when user clicks Radio Group Value - RG_G, SL_B has to be visible.
    Is this possible in APEX 4? How can I do it?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Yes, you can do it using Dynamic Actions.
    See this thread as well. APEX4: Populating fields from database based on the SelectList value
    In Radio Group you will need to identify the button clicked from its ID and / or value. Thats because the Radio Group Item creates as many IDs / Items as there are options P1_ITEM_0, P1_ITEM1_1, etc.
    Regards,

  • Hide content type from the new menu but show in edit form

    SharePoint Online, I have following 4 site content types Word Document Excel document PowerPoint document General document
    These content types are being used in a document library and "Word Document" is the default content type, When user clicks on "new" menu, all 4 content types are shown.
    I don't want to show "General document" in the new menu but I want to show in edit form, I have marked it hidden in the library settings but now it is not visible in the edit form.
    Any idea how can I hide content type from the new button but show in edit form?

    Hi,
    Whether you use SharePoint online 2013.
    If we hide the content type in the library settings, the content type will not be displayed in both new menu and edit form.
    To accomplish your qequirement, we need to use css code:
    style <style type="text/css">
    ul.ms-cui-menusection-items32 li:nth-child(4) {
    display: none !important;
    </style>
    perhaps your environment is different with mine, you need to make a little change to the code. 
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have
    feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • How do I hide objects in all instances of a sub-form?

    I have a list of objects in a sub-form.  They are hidden or made visible depending on the selection of a drop-down menu outside the sub-form.  It works correctly for the first instance, but objects that are supposed to remain hidden become visible in all subsequent instances of the sub-form.
    How do I make the objects remain hidden in all instances of the sub-form?

    I think you want to move all the code from the change event of form1.EXP_Sample_Form.Identifier.Who.LOB_List.LOB_List to the calculate event of form1.EXP_Sample_Form.Bottom_of_Form. 
    Which would then look like;
    switch (Identifier.Who.LOB_List.LOB_List.rawValue)
        case "AmeriHealth Caritas":
            PCPInfo.Docs.SiteVisit.presence = "hidden";
            PCPInfo.Docs.Comments_SiteVisit.presence = "hidden";
            PCPInfo.Docs.SiteVisit_Received.presence = "hidden";
            PCPInfo.Docs.PanelAttestation.presence = "hidden";
            PCPInfo.Docs.Comments_PanelAttestation.presence = "hidden";
            PCPInfo.Docs.PanelAttestation_Received.presence = "hidden";
            break;
    Here is your form with this suggestion made, https://workspaces.acrobat.com/?d=koCEYxi-59F7n5iyIoMhGQ
    Bruce

  • Possible to show/hide sections in a table?

    Hello all,
    First post here. I've only started using LiveCycle Designer a few weeks ago, never knowing that it came with my Acrobat. I've been busy converting forms we use in our business into pdf versions that can be filled, and created some with simple scripting etc.  Anyway my most ambitious effort to date is to create a gross payroll calculator in which I would enter the total hours worked for each employee and the gross payroll is calculated. The calculations I have no issue with.
    I am using a hidden "config" subform (thanks to kingphysh for your easy and simple example!) to store the employee names and payrates and the department they work in.
    My main form, the one on which I am entering total time for each employee, consists of a table with a section for each department. Thus I can put all employees in a department in one section of the table and then easily do subtotals by department etc.
    Table1
    Table1.Section1
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|  <-- this would be one row in the section     
    Table1.Section2
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|
    Table1.Section3
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|
    and so on. Each section also has a footer row for subtotals.
    This form will be used at various physical locations and not every location will have all departments. Thus I want the table to show only those sections for which the corresponding departments exist based on a selection (checkbox) that is on the hidden config page.
    Its not so much the actual scripting thats a problem, but where to put the script. Should I use a Table1 event or the checkbox event? I've tried both but neither works as desired. Or should I use an event for the individual rows in the section itself?
    Any pointers and suggestions will be greatly appreciated!
    Harry.

    Niall,
    Many thanks for all your help. With the examples you provided, I have been able to almost finish the form and learned a little bit along the way too.
    There are a couple of things still vexing me though.
    My form's hierarchy is as follows:
    page1 (flowed)
         - wrapper (flowed)
              - form1  (positioned)  <-- sub-form (form on which data is entered and calculation results are displayed_
                   - table1
                        -HEADER
                        -Section1 - bodyrow
                                       - section1 footer
                        -Section2 - bodyrow
                                        - section2 footer
                        -FOOTER
              - config   (positioned) <--  sub-form (normally hidden "config" form which stores employee data - accessed by password
                   - table1
    The sub-form form1 contains a table with six sections. Each section represents one department and has  body rows and a footer row for subtotals.
    the number of body rows in each section can vary with the number of employees in the department.
    I have two issues remaining with the form and it will be done. Hopefully you will be able to point me in the right direction.
    1. Pagination - in the form, I have set page1 to "flowed". wrapper is also flowed. form1 is positioned.
         I would like to be able to set it so that if any section is going to be split, it would go onto the next page.
         The header should be repeated in each page. Each section footer should be with the section, and the Table footer should be on the last page.
    2. Column Subtotals
         I have set the form to be as general purpose as possible. Thus it can take time totals in either decimal or HH:MM format. I am having trouble adding columns of time totals in HH:MM format.
    For example, given 3 time totals (all are in text fields):
    10:35
    15:59
    03:24
    I would thing the best way to do this is to parse the strings and add the minutes and hrs separately and then depending on the total of the minutes, use the floor and mod functions to get the correct total. I just can't get it to add the columns at all.
    This is the code I am using to add the column:
    if (_FD.count gt 0) then   //make sure at least one body row exists in this section
    for i = 1 upto (_FD.count) do
    mins = Sum(Right (FD[i].fdr_tot[i], 2))        // FD is the row and fdr_tot is the cell in the row which is to be included in the calc.
    hrs = Sum(Left (FD[i].fdr_tot[i], (Len (FD[i].fdr_tot[i]) - 3)))
    endfor
    endif
    I've tried using the code below as well to no avail.
    mins = Sum(Right (FD[*].fdr_tot[*], 2))
    hrs = Sum(Left (FD[*].fdr_tot[*], (Len (FD[*].fdr_tot[*]) - 3)))
    Any suggestions will be greatly appreciated.
    Thanks.

Maybe you are looking for

  • Can not add new VMS into existing clustered server pool

    For some reason, we reinstall VMM (3.1.1-416) with existing UUID and rediscover all VMSs. The process went smooth and the whole system looks clean without dead objects any more. The guest VMs are all working fine. However, the new added VMS in unassi

  • Acrobat X Pro - Compare Documents - Need Help

    I'm running X Pro as a trial to determine if it is right to purchase for my company.  The main feature I am interested in is the "compare documents".  I am in the construction industry and part of my business is to provide estimates for projects.  We

  • How to hide a dashboard in OBIEE 11g?

    Hi All, How do we hide a complete dashboard in OBIEE 11g? A particular dashboard page can be hidden by going to dashboard properties but there is no option to hide a complete dashboard. Also, in Administration, there is no 'Manage Interactive Dashboa

  • How to design a file system based on java card

    I have reviewed all kinds of articles about it.And right now I can not find any source code to do that function.But how to design a full gsm file system using java card. of course you need fast access,dynamic allocate memory,file properties managemen

  • Always enjoyed being able to open new windows in a tab. However, after upgrading found I was no longer able to do this.

    Have search all over web and tried every solution I could find; explored addons, restored, even reinstalled 19.0 but I am still unable! It is very frustrating. Would appreciate suggestions (never thought I'd say this but Safari is looking good!). Tha