Hiding/Showing Subforms

Hi Experts,
I try to design a Form showing a collapsible Directory-Tree. I use nested subforms with Buttons to set the .presence property of the inferior subform to "hidden"/"visible". Setting to "hidden" works fine but if I set one of my Subforms to "visible" all other subforms get visible also. If I save the Document with the presence of a subform set to "hidden", it is not possible to get it visible at runtime by means of JavaScript. It seams as if setting any subform to visible renders the Document as if it has been newly opened again.
Is this a Bug in Acrobat?
And I found another Problem: I former tried to read my directory-tree from an XML-File. Dynamically loading of Formfiels with variable number of datasets worked fine, but when hiding and subsequently showing a subform again, all data from the underlying formfields is lost.
Does anybody know the reason? Or are there any helpful suggestions to get a dynamic Tree in a PDF-File?
Additional Info: I use Acrobat 7.05 with Lifecycle Designer Version 7,0,041126,0
Thanks in advance
Armin Schorsch

Hi,
Also check the following:
check form is saved as Dynamic XML form in the save as dialog;
check that the dropdown does not have a bound/specified value in the Object > Binding tab;
I would drop the second 'else if' and just run with an 'else'. There appears to be only two choices, so the main if statement will capture one condition and the else with set the second output.
Hope that helps,
Niall

Similar Messages

  • Hiding a subform based on field value.

    Dear Friends!
      I am trying to hide one subform when I have certain value in text field. I tried following code but it didnt help me at-all. will it be possible for you to show my my mistake.
    the business case is I am not supposed to display Form 16 related information in payslip when payroll areas are 13 & 14 for other payroll areas form 16 should display.   here subformname is Form16.
    code:
    data.#pageSet[0].Page1.Form16.Form16::ready:form - (JavaScript, both)
    IF(data.page1.payslipheader.GV_ABKRS.rawValue == 13);{
       Form16.presence = "hidden";
    IF(data.page1.payslipheader.GV_ABKRS.rawValue == 14);{
        Form16.presence = "hidden";
    above code is not hiding Form16 subform.
    thanking you
    Regards
    Naim

    Hi Soumik,
    that is a easy issue. Create a condition, where you ask the value, if it is initial.
    In this discussion, exact your question is solved.
    Adobe forms: Hide table rows based on data
    or here is another way to solve your issue
    Hiding a table column for a particular condition
    This is the code you need:
    if ( this.yourvalue.rawvalue == " " )
       this.presence = "hidden";
    Please use the search, which is located in the upper right corner of SCN before open a discussion.
    Here you can learn more about it:
    How to use SCN search
    Regards
    Florian

  • Getting warning when trying to hide/show subforms

    hi,
    i have a pdf form with several subforms on it. I made the hide/show form option with the click event of some buttons.
    It worked fine.
    I then tried to do the same using the initialize method for the form.
    form1.page1.Subform1.presence = "hidden";
    It works ok. However i´m getting two warnings on designer preview. The warnings are
    unsupported 'presence=hidden' value on subform object 'Subform1'
    I know that somethimes the preview option of adobe designer is not the best way to test this. Could this be an error on my code or is it a "bug" from designer ? Should i rely on the form to work like this (with this warnings)?
    thanks

    Hi,
    the schema is already registered at another control center (belonging to another workspace).
    You cannot deploy from two different repositories into the same target schema.
    Unregister the location first from the old control center.
    Regards,
    Carsten.

  • Hiding/showing JFrame with active JDialog

    Hi,
    I have a problem with hiding and re-showing a JFrame that contains an active JDialog.
    I have a JFrame (named operatorFrame) that holds the main application and a JFrame that I use for showing a screensaver. When the screensaver has to be shown I perform a hide() of the operatorFrame and a show() of the screensaver frame.
    These actions are done in a Runnable that is called through SwingUtilities.invokeAndWait(). Now when the operatorFrame contained an opened JDialog and the screensaver started, when closing the screensaver the operatorFrame.show() method is called and there it stops. The instruction that follows the show() is never reached.
    Does anybody have any ideas?
    Thanks,
    Taaje

    I understand that but then why does it work when I run the same code in Windows (the normal environment is Red Hat Linux)?
    I just found out that it works when running it under Windows.

  • Trouble hiding / showing element with DA based on results of query

    Hi all,
    I have a field that I would like to valid either on keypress or lose focus. What I need to do is query a table with the value entered to determine if it exists. If it does, I want to show a little green checkmark, if not a red 'x'. I figure that I can use getElementById() to hide or show the image, but I can't seem to figure out how to do that based on the result of the query.
    I've tried this so far:
    DA
    event: lose focus
    type: item
    item: P3_PO_REF_NUMBER
    condition: not null
    true action: execute pl/sql code
    code:
    BEGIN
    declare
    l_exists number;
    begin
      select count(*) into l_exists
      from PO_LINE
      where BUSINESS_UNIT = 'METRO' and
        (PO_ID = to_char(:P3_PO_REF_NUMBER,'FM000000000') or PO_ID = 'S'||:P3_PO_REF_NUMBER);
      if l_exists > 0 then
        apex_util.set_session_state('P3_VALID', 'VALID');
      else
        apex_util.set_session_state('P3_VALID', 'NOT_VALUE');
      end if;
    end;
    END;page items to submit: P3_PO_REF_NUMBER
    page items to return: P3_VALID
    Eventually I thought that I'd create another hide/show DA based on the value of P3_VALID, but before I went much further, I wanted to check to see how this worked. It didn't. Error: exception thrown and not caught.
    Any thoughts as to what I'm missing, or am I doing this completely wrong?
    Thanks,
    Joe

    Ok, just for closure. I did get this working.
    I ended up deleting the original P3_PO_REF_NUMBER item and recreated it, and everything began to work. As I was doing this, I noticed that it seemed like things would begin to go awry when I changed the item's name, even if I changed it back again. It was almost as if there was an associated between the DA that became corrupted once the item name was changed. If I took the item out of the page items to submit field, no error. Of course the DA wouldn't fire correctly then either because it wasn't getting any value changes, but when I added the item back into the page items to submit field, I go an error.
    So:
    When I created the second PO_REF_NUMBER item, I did not delete the original first, so the new one of course had to be named differently. Then I modified the DA to use the new item name (PO_REF_NUM). It worked! Cool. So, no wanting to get rid of the original yet, I rename it, and then renamed the second one to what the original was (I have other code using that item name). Then I changed the DA again...but now it failed - unless I blanked out the page items to submit field...
    3rd time is a charm. So, this time, I made sure that no items were named "PO_REF_NUMBER", then I created the PO_REF_NUMBER again, naming it exactly as I needed it to be so I wouldn't have to change it later. Then I set out to tweak the field (size, etc), but did not touch the name. Now my DA is working nicely! It sets a hidden field's value, then another DA shows or hides an icon based on that hidden field's.
    Hopefully someone will find this useful,
    Joe

  • Issue with hiding/showing object in 5.5

    Have two objects - text and image that are only to display on click.
    Both have Visible unchecked so they don't show.
    Set up Advanced Standard Action to Show both of these items.
    Click Boxhas set to execute the advanced action on success. (Pause for Success/Failure is selected)
    Text and image never show.
    What am I missing?

    Hi Rod;
    I've been fiddling with it, and can now get it to show when the "correct" caption shows for the click box - but it also needs to show when the failure caption shows (it is a yes/no question that they don't have to get right ... and the text that shows up is the directional text to tell them to click the forward button).
    I set the image and the text box for the items that need to appear as not visible. I brought them to the front, and set them to appear at the beginning of the slide and last to the end of the slide (duration).
    Here is the Advanced Action:

  • HIDING A SUBFORM BASED ON CONDITION

    Hi experts,
                   My requirement is i have created one body page that body page is flowed and type western text
                   and i have two paragraph , in between this two paragraph i have one table. table alignment is not
                   left most so i have created one text to adjust this alignment
                  so the
           |       1. para ...................................................................................................|
           | blank text |              table                                                                               |
           |2.para ...........................................................................................................|
    so now when there no value in table it is creating a gap in between two paragraph.
    i don't no much more abt java script and formcalc please suggest me . any solution for that............

    Hi Soumik,
    that is a easy issue. Create a condition, where you ask the value, if it is initial.
    In this discussion, exact your question is solved.
    Adobe forms: Hide table rows based on data
    or here is another way to solve your issue
    Hiding a table column for a particular condition
    This is the code you need:
    if ( this.yourvalue.rawvalue == " " )
       this.presence = "hidden";
    Please use the search, which is located in the upper right corner of SCN before open a discussion.
    Here you can learn more about it:
    How to use SCN search
    Regards
    Florian

  • Hiding/Showing new fields to Form on Check In Similar

    Hi,
    I am a newbie UCM developer.
    Is it possible to hide some fields and show some more fields on Check In Similar.
    The idea is to have a short Check In form with a few details and check it in without content. The next step would be the user will search based on some metadata fields and then click on Check In Similar. At this point we want some more fields added to the check in form.
    Any ideas on how to do this? For now the customer does not want to use customization. Appreciate your response.
    Thanks
    Soumya

    I am listing one approach below...
    create 2 profile Rules myRule1, myRule2
    myRule1 will have all the fields that are to be displayed when you the user does CheckIn Similar
    and rule activation condition as
    ((not myCustomVariable like "myCustomValue"))myRule2 will only have few fields.
    ((myCustomVariable   like "myCustomValue"))create a profile myProfile1 and add the above rules
    to checkin in an item for reference (few fields), append "&myCustomVariable=myCustomValue" to URL.
    +(this will trigger myRule2 and only few fields will be displayed)+

  • Hiding Subform based on another field value which is not in Layout

    Hi,
    I tried using Formcalc for hiding a subform like below.
    if ($record.BLOCK04.GT_ITEM_LEV1_910.DATA[].GT_ITEM_LEV2_910.DATA[].KDMAT == null)
    $.presence = "hidden"
    endif
    My subform is Flowed, Western text
    When i run it, its not working..so i hided using context condition like if there is no value in KDMAT, do not pass it to Layout...Now it's working..My problem is, when there is no vaue, it is leaving BLANK LINE in the print out..a gap is there for that row.
    Please help me how to avoid the EMPTY/ BLANK LINE??
    Thanks in advance

    Hi,
    All my PARENT subforms are Flowed only..still its not working..Yes, I want to print left to right only..
    Please help..
    I checked REPEAT SUBFORM but not MAX or MIN count..then it's working but it prints 2 times for first item which is wrong.
    I am not understanding the behaviour of this..Please help

  • How hard is it to use javascript to show/hide fields. Is it easier to use the action builder?

    I know nothing about javascript and all that ive been using so far has been stuff ive found on here (thank you everyone).
    Using the action builder seems like its gonna be very tedious to do since i have so many subforms that hide, would it be esier to use javascript?

    I know nothing about javascript myself but I just created a form with about 10 different subform that show or hide depending on what the user chooses from a drop down list and I used Action Builder. If we don't know javascript, how can we use it? But Action Builder did a fine job of hiding/showing wherever I needed it. And Action Builder can do more than one thing by clicking that + sign when you are building an action.
    For instance, I needed to place a button in each subform that would close both the field that the person was working in and also the subform on the next page where the information was going into floating fields in a text block that was only visible thru a drop down list text select. I could have never figured out how to do that based on my knowledge of javascript. Thank Adobe for including Action Builder in this version of LiveCycle and I use it all the time. I find it extremely easy to use but it takes a little mental training to think thru the steps of how you can use the menu in Action Builder to make your form do what you need it to do.
    And if all else fails, ask this forum. I struggle for just so long before I come here and ask for help. I always get the answer I need. I hope you will too.
    Good luck,
    Jeanette

  • Using [subform].keep.next to fix flow problems?

    Hi,
    I have a dynamic form with many subforms, and I am having trouble getting certain subforms which function as headers to stay on the same page as their body subforms when they are flowed. I tried using the "Keep with Next" property in the GUI for the header subform, but that seems to pertain to content areas, which I am not using, and does not work for me... it elicits strange behavior from some of the subforms where they are completely rearranged at runtime or when I click the "next" button in design.
    I was excited to find that you can specify to keep a subform with the next object using javascript through the "subform.keep.next = 'pageArea'" syntax... but I can' t get that to work either.
    It seems that the scripting modules are only triggered by events, so under what event do I put my script to specify this property?
    I can't post the form itself, because it contains some proprietary info from my company, but I'll try to describe what going on in the form below:
    The form is saved as a dynamic form, is set to run in Adobe 7.0.5 or later, and the text formatting and event model are set to version 7. My LiveCycle version is 8.2.1.
    I have many categories of options which users can pick from on my form. Each category has a subform with a text header and a drop-down list of "yes" or "no", and then another main subform or two that contain the actual options. If they don't wish to use any options form a particular category, the user can pick "no" from the drop-down in the header subform and the next subform(s) containing the options for that category is hidden. Of course, once one subform is hidden, the subforms coming after move up and the pagination changes.
    The layout looks like this:
    >MainForm
         >Page1 (flowed)
              >Subform1_Header (positioned)
              >Subform1_Body (flowed, so that internal subforms can be split across pages)
                   >Subform1a_BodyOptions (positioned)
                   >Subform1b_BodyOptions (positioned)
              >Subform2_Header (positioned)
              >Subform2_Body (flowed, so that internal subforms can be split across pages)
                   >Subform2a_BodyOptions (positioned)
                   >Subform2b_BodyOptions (positioned)
         >Page2 (flowed)
              >Subform3_Header (positioned)
              >Subform3_Body (flowed, so that internal subforms can be split across pages)
                   >Subform3a_BodyOptions (positioned)
                   >Subform3b_BodyOptions (positioned)
    This hiding/showing works fine when all of the categories are visible, but when one or more is hidden and the next subforms move up, the header subforms are often set as the last thing on a page, with their options, which are much longer, being pushed to the next page. I want to always make sure that no matter how the subforms are flowed, the header stays with its options on the same page. I tried putting the above script to keep with next on the exit event of the drop-down list, which is what triggers the hiding on the subforms, but I don't see any results.
    I am not using content areas because I am not using master pages... my subforms are all totally different sizes, so I don't know how to make a master page to fit all. Right now I just have a flowed regular page object containing my subforms for each page on the form that exists when all of the subforms are showing. I don't know if maybe my problem is that I'm not using the page objects or master pages as I should? Ideally this layout should just be one long page-break-less list of subforms that paginate dynamically depending on what sets of options the user wants, but I can't figure out how to make this work.
    Any help at all would be appreciated.
    -Jess

    Thanks for the smaple, djaknow
    The thing is, the objects in my body subforms are all static themselves... the expanding doesn't happen when a user types in too much information to fit in the subform. It's hiding/showing of the subforms which make other subforms move up or down
    I have tried using the "keep with next" option as you have done for the second header/subform combo. Try using it on the subform called "sub13ExportOptionsHeader" in my sample, under page 4. For me, when I select this the whole subform jumps down so that it is located between sub14a_sec2 and sub14a_sec3 in the layout.
    I had previously tried using these options on an earlier version of the form and had no problems like this at desgin time, when I previewed in LiveCycle, or when I tested it in Acrobat 9. However, when I tested the form in Acrobat 8, I had similar issues... when certain subforms were hidden, some of the still visible subforms were rearranged so that they were not in the correct order anymore. I never truly resolved this issue; the only thing that fixed it was to have neither Keep With Previous or Keep With Next selected for every subform.

  • Hiding Pages in ADOBE form using formcalc scripting.

    Hi Experts,
    I am new to ADOBE form and currently working on invoice print output. (NOT an  Interactive adobe form)
    My requirement is
    i wanted to print one main page and 5  different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
    Deppending on 'Oreder reason' (made as global variable)  , i need to select appropriate annexure and print
    main page and any one of the annexure.
    so i should hide all other annexure, to achive this i used formcalc scripting.
    i tried hiding annexure 2 by following code,
    data.Annexure2::ready:form - (FormCalc, client)
    if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
    then $.presence = "hidden"
    endif
    i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
    Experts please help me...
    this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
    thanks and regards
    varun
    Edited by: skyblue on Aug 6, 2011 3:30 PM

    coding Formcalc is a pain.
    But you're doing the right thing by passing in a variable and hiding based on the content of it.
    Here's an example of where I'm hiding a subform on a page.
      if ( main_sf2.charter_only.CHARTER_DOC.rawValue eq "X" ) then
       main_sf2.pts_sf.presence = "visible"
      else
       main_sf2.pts_sf.presence = "hidden"
    endif
    Looks like your code is similar - try changing
    ( data.G_F_ORDER_REASON.rawValue == "ANX" )  to
    ( data.G_F_ORDER_REASON.rawValue  eq "ANX" )
    or instead of $.presence = "hidden"  fully qualify the name of your page to  data.Annexure2.presence = "hidden"

  • Hide/Show layers with Javascript

    Hello,
    I am trying to find a Javascript method for hiding/showing layers in a pdf document. I would like to be able to use an if/else statement to set the visibility of multiple layers.
    Let's say I have 5 layers on a single page, all set to hidden by default. This page also has a field with 5 options relating to each of the 5 layers. Once an option is selected, an if/else will use this method to set the appropriate layer to visible.
    Thank you!

    Here is another way to satisfy your layer requirements in PDF.
    1. Create a Field (type: button) for each layer. Suppose the five “layers” are called “LayerButton1”, “LayerButton2”, “LayerButton3”, “LayerButton4”, and “LayerButton5” (using Acrobat Professional or using the doc.addField API).
    2. Store an image for each layer (using Acrobat Professional or using the buttonSetIcon API).
    3. Position each button on the page anywhere you want (using the rect property)
    4. Each option that controls the visibility of a respective “layer” may also be a button. Create a Field (type: button) for each control.  Suppose the five “control buttons” are called “ToggleLayerButton1”, “ToggleLayerButton2”, “ToggleLayerButton3”, “ToggleLayerButton4”, and “ToggleLayerButton5”.
    5. Position each control button on the page anywhere you want.
    6. For ToggleLayerButton1, add the following MouseUp action (using Acrobat Professional or using the Field.setAction API):
      var fld = this.getField("Button1");
      if (fld.display == display.hidden)
        fld.display = display.visible;
      else
        fld.display = display.hidden;
    7. Repeat the MouseUp action for the other control buttons.
    I hope this helps. - john

  • Show/Hide buttons

    Hey everyone,
    Is there a way I can create a "Show" button that would be
    visible to users when they click "Hide" (or X) on the nav bar? The
    team I'm working with doesn't think that making users click the
    Contents, Search, or Index button to "Show" the navigation pane
    would be intuitive enough.
    Also, how do I hide the "Show" link in a context-sensitive
    help window? Some people are thinking that we need to hide this,
    thereby "forcing" them to click the "main" help button in the Help
    menu, but I disagree.
    Thanks,
    Jim

    I understand the concern but most folks seem to work it out.
    If you cick X, you know you have done it and will look for ways
    back. That usually involves clicking anything in site! I don't know
    of a solution.
    How does hiding Show, forcing the user to close that, open
    the main help and start over, help them? Yes you are forcing them
    but you are not helping them and I agree with you. You can hide
    Show by deselecting the show navigation in the wizard but it's a
    bad move. With show enabled, they can see the topic they first went
    to, its place in the structure and they can navigate from their.
    Much more intuitive.

  • Dynamic table grows to 3 pages, preceding section of document moves, appears in middle of table!

    I have a form with several sections, say (a) 'header', (b) 'instructions', (c) dynamic table.    This works very well in general - as long as the total form fits on 2 pages.
    However, if the number of rows in the dynamic table gets too large, and flows to page 3 (or more), then the 'instructions' section moves from being in it's normal order - and shows up inside the table at the top of page 3 (last page)!     i.e., this section shows breaks the flow of the table, inserts a complete section, and then continues with the table!   
    Any ideas?    I've tried manually hiding/showing things and other tricks to try to get it to work as it does with a smaller table.

    After mucho effort to reduce the problem, it turned out that I had the misbehaving section "Keep with -previous-" checked.    Not sure what this does really, and it certainly wasn't working correctly - but heck, removing it solved my problem.
    I did reproduce the problem to this:
    subform - marked 'Keep with previous"
    repeating table
    That's it.    Once the size of the repeating table goes to page 3, the previous subform jumps to the top of page 3.    Go figure.
    (Somewhat humorously, in the linked to file - even the preceding element to the offending subform is also dragged to the top of page 3.)
    Clearly shows bug in a minimal form - http://www.radioshowlinks.com/f/cwb/TooSimple-v13.pdf
    Thanks again for all your help!!!
    p

Maybe you are looking for

  • HT5730 How can I find out the size (Kb /MB) of software updates?

    My software updates available contains a number of program updates.   I have a daily data allowance of 400 mb.  I want to prioritise my downloads, but cannot make a decision without knowing how big each update is.  So, how can I find this out ?

  • Does lte use more data when it's turned on

    When running an IPad from cellular, does it use more bandwidth with LTE turned on.

  • Cheque and payment advice through different printers

    Hi , We need to print cheques and payment advice through different printers , for both the above documents we are using z programs .... Both get printed at the same time ,whenever a cheque is printed a payment advice is also printed . any idea how to

  • How can I solve the problem? under rh6.2

    Exception thrown from action: make Exception Name: MakefileException Exception String: Error in invoking target install of makefile /home/oracle/app/ oracle/product/8.1.6/sqlplus/lib/ins_sqlplus.mk Exception Severity: 1 Exception thrown from action:

  • Deleting Photo Libraries

    How do you delete photo libraries form the original iphone?