Unable to unhide subform in Adobe Form

Hello All,
Something that should be simple has turned into a bit of a trial. I have an Adobe form with three tables with different columns. Based on a variable passed to the form say, "number_of_tests" one of the tables should be visible.
This works fine when the subforms are set to "invisible" by default and then made "visible". However, it does not work when the default value is "hidden". Why does this matter? Well, the "invisible" element still affects the layout of the form so I need it "hidden" (exclude from layout). Any clue would be greatly appreciated.
Here is my sophomoric code and location.
data.#pageSet[0].Page1.NUMBER_OF_TESTS::initialize - (JavaScript, server)
if (this.resolveNode("$").rawValue == "03") {
  this.resolveNode("Page2.ItemDataHdrSubForm3").presence = "visible";
  this.resolveNode("hdrs.ItemDataHdrSubForm3").presence = "visible";
  this.resolveNode("itms.ItemDataSubForm3").presence = "visible";
if (this.resolveNode("$").rawValue == "04") {
  this.resolveNode("Page2.ItemDataHdrSubForm4").presence = "visible";
  this.resolveNode("hdrs.ItemDataHdrSubForm4").presence = "visible";
  this.resolveNode("itms.ItemDataSubForm4").presence = "visible";
Here is the structure of my elements.
MainSubForm is Flowed default to Visible.
SubHeaderSubForm is positioned default to Visible.
ItemDataHdrSubForm3 is flowed default hidden. (doesn't work, but does when default is "invisible")
ItemDataSubForm3 is flowed default hidden. (doesn't work, but does when default is "invisible")
ItemDataHdrSubForm4 is flowed default hidden. (doesn't work, but does when default is "invisible")
ItemDataSubForm4 is flowed default hidden. (doesn't work, but does when default is "invisible")
Again, thanks for any assistance.
Greg

Hi,
look into the XFA specs to learn the difference of visible, invisible, hidden and inactive: http://partners.adobe.com/public/developer/en/xml/xfa_spec_3_3.pdf#page=68
Ok, so why do you use the initialize event for your script?
And the script you provided does not fit the structure form your screen shot.
It should look this way:
if (this.rawValue == "03") {
  xfa.resolveNode("MainSubform.ItemDataHdrSubForm3").presence = "visible";
  xfa.resolveNode("MainSubform.ItemDataSubForm3").presence = "visible";
if (this.rawValue == "04") {
  xfa.resolveNode("MainSubform.ItemDataHdrSubForm4").presence = "visible";
  xfa.resolveNode("MainSubform.ItemDataSubForm4").presence = "visible";

Similar Messages

  • Subforms in Adobe Forms

    Hi can anyone tell me what are Subforms in Adobe Forms. What is there use ?

    Hi,
    I hope the below link can help you.
    http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Adobe_LiveCycle_Designer_Help&file=000269.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669
    Thanks,
    Khushbu.

  • Moving subforms in adobe form

    Hi,
    I developed an adobe form, it has 3 subwindows.
    Form structure is:
    It has 3 pages:
    Page 1 contains Subwindow 1. This is a fixed subform which always comes. This subfirn has 3 checkboxes.
    Page 1 has subform 2 also.
    page 2 has subform 3
    page 3 has subform 4
    When checkbox 1 is clicked, subform 1 appears
    When checkbox 2 is clicked, subform 2 appears
    When checkbox 3 is clicked, subform 3 appears
    When all checkboxes are clicked togeather, all three subforms appears.
    When checkbox 2 and checkbox 3 is clicked, then subform 3 and subform 4 appears on page 2 and page 3.
    My requiernmrnt is, when checkbox 2 is clicked, then subform 3 should be displayd on page 1 instead of page 2.
    How to achieve this funcionality?
    Regards,
    Ashish Gupta

    If you have below form hierarchy then it won't work the way you want as you are already creating pages and in case you hide/unhide a subform, it will reflective in that respective page only.
    form1
      |--Master Pages
        |--Page 1
          |--(untitled Content Area)
      |--(untitled subform) (page1)
          |-- SubWindow                  // This is a fixed Subform
             |-- CheckBox1
             |-- CheckBox2
             |-- CheckBox3
          |-- Subform2
      |--(untitled subform) (page2)
          |-- Subform3
      |--(untitled subform) (page3)
          |-- Subform4
    So if you want to achieve effect of having Subform3 appearing on Page1 itself then you need to place Subform3 on Page1 itself. Place the Subform2,Subform3,Subform4 next to each other or however you want but all on Page1 itself.
    Follow below form hierarchy and properties as mentioned against it.
    form1
      |--Master Pages
        |--Page 1
          |--(untitled Content Area)
      |--(untitled subform) (page1)
          |-- SubWindow                  // This is a fixed Subform. Make the Content type as Positioned in Object palette.
             |-- CheckBox1
             |-- CheckBox2
             |-- CheckBox3
          |-- Subform2                 // Make the Content type as Flowed in Object palette.
          |-- Subform3                 // Make the Content type as Flowed in Object palette.
          |-- Subform4                 // Make the Content type as Flowed in Object palette.
    I believe you already know how to hide/unhide the subforms through JavaScript/FormCalc.
    Chintan

  • Importance of the subform in adobe forms

    Hi,
       Since i am new to this adobe forms, can any one tell me the importance of the subform and difference between Body page & Main page of the layout.
       I was trying to use the adobe forms to print the internal table data, but at the end of the internal table data i need to 'write some text' and need to do some calculations based on internal table data.
       here i have used the subform at the end but the problem is subform is overwriting in all the pages. It should be displayed in only in the last page and after all the internal table records printed. Thanks in advance.

    Hi,
    Subform: is nothing but make the individual fileds into one group.
    Let say example: in my output i am displaying header information..... make all the fileds into one subform, it indicates as header subform.
    Suppose if the subform properties are position contents it does not flowed...
    Suppose if the subform is flow content and top to bottom, it should flow to subsequent pages....
    In adobe forms we have two types of pages which are
    Master page
    Body page
    Master page: Basically we will design the logo,address and fotter will be designed in the master page.
    it has to reflect to the subsequent pages. Master page is excluded from the content area
    Body page: we will design the Table Data. it should included in the content area.
    if you want to display some thing into the last page you can write the scripting based on the condions....
    Adobe forms support the scripting .....
    We have evnets like if you are wirting the conditions on
    Master page  ---> Select the event as layout ready
    Body page    ---> Form Ready event in the layout
    Hope it may clears for your requirement
    Thanks & Regards
    Ramakrishna Pathi

  • Hiding subform in adobe forms

    go to palettes and select script editor. you will find a white colored editor.
    Click on the subform which is to be hidden in the heirarchy.
    Select Initialize from the drop down list on the editor. And select Language as FormCalc.
    You'll get the white space in the editor to write the code.
    if the subform which is to be hidden is SUBFORM1.
    then write the code as follows
    $.SUBFORM1.presence = "hidden"
    this will hide the sunform.
    if the hiding of the subform is dependent on any condition then we can write the code as follows
    if ( condition )  then
    $.SUBFORM1.presence = "hidden"
    endif
    this code will hide the subform and all the elements in the subform only if the condition is satisfied.
    Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms", not a question anyway, if you'd like to share ideas/code samples, please use the wiki space.
    Edited by: Thomas Zloch on May 10, 2011 10:29 AM

    Hi,
    This has been discussed many times in the forum. Check the following thread.
    hide a row or field in adobe form
    Thanks,
    Aravind

  • Change the position of subform in adobe forms

    Hi,
    I have a requirement to change the position of subform(y co-ordinate) in offline adobe forms.
    My subform is positioned and my code is:
    this.y = "10 in".
    Though this question has been answered a few times,I could not find the answer in any of them.
    Please suggest...
    Thanks and regards,
    Raka.

    Presenter doesn't have the same functionality for the TOC as Captivate. There is some wizardry that can be done if you want to adjust the look of the slide list.
    Work around was discussed in this thread: http://forums.adobe.com/message/1970468#1970468

  • Unable to execute a Interactive Adobe Form

    Hi All,
    We have developed an Adobe Form in the Netweaver Developer Studio. The form has been integrated on to the portal as an iView. The issue is that this form gets executed only on systems in which Netweaver Developer Studio is installed. If I run the same application in my system which does not have the studio installed there is no response from the Form. Is there any kind of a plugin for Adobe Reader which needs to be installed inorder to run the application ?
    Best Regards,
    Sudhi

    post this question in the EP forum.
    looks like you are missing some jars in the server.
    /community [original link is broken]
    Regards
    Raja

  • ADS: unable to activate a new adobe form

    Hi,
    I'm testen the adobe form functionality in netweaver '04
    I succesfully created an interface, a context and a layout. But when I click the activate button, it stays inactive. I don't receive any errors, just message ED118 (Operation terminated)
    Does anyone have a clue how to solve this?
    PS: I don't know which ADS version I have
    PS²: I have installed Adobe Livecycle designer 7.0 (downloaded from SAP)

    Bert,
    Are you doing this from ABAP?  I had the same issue.
    Is your J2EE Engine up and running with Adobe Document Services?  This is the only way to get the form activated.  Since I am not a Basis expert I am not sure what all needs to be done.  But if the J2EE engine is up with the ADS running then maybe their are some Basis type of settings that need to be done to point your ABAP WAS to the J2EE WAS. 
    Chris

  • Hiding subform in adobe form through javascript.

    Hi guys,
    I wanted to hide a subform through javascript.
    i want to make it visible only when the page no = 3.
    what is the syantax of javascript to do this.
    thanks in advance

    Hi,
    you can use as below,
    below Scripting can be used to ahcive this.
    1. FormCalc Scripting.
    2. JavaScript.
    Combination of both is also allowed in same form.
    Example:
    if( hasValue($) ) then
    StaticText1.presence eq u2018visibleu2019
    Else
    StaticText1.presence eq u2018hiddenu2019
    Endif.
    Thanks,
    Chandra

  • How to Debug Java Script in Adobe Form

    I have used an alert for empty fields . I have used Check button control for this.
    But the button click is very inconsistent. Some times it triggers the event sometimes it doesnt. Is there anyway to debug the java script. I have installed Script editor for IE but I am unable to use it for Adobe Forms.
    Any help is appreciated.
    Thanks,
    Vasu

    Hi Vasu,
    i think that maybe is the check sequence is not very correct.. and maybe you can try to code it one check for empty fields at a time..
    example
    Name.
    Address.
    Tel.
    Hp.
    Email.
    so u can try to code for one item at a time then slow try to debug it... as last time i use to insert the javascript inside each component then after it i implement into a button and slowly check for the check sequence which one need to be 1st and etc.
    hope it help you. if not maybe u can give more information. maybe i can help you out at myside.
    Regard,
    Ng Jia Jun

  • How to download interactive adobe form with filled data

    Hi Experts,
    i have created a module pool program that is showing interactive adobe form, i created a button 'SAVE' to download the interactive adobe form to the presentation server.
    but the problem is that i am unable to save the interactive adobe form with filled data. Please provide me the code how to download interactive adobe form with filled data.
    Please provide me valuable information to clear the issue.
    Thank you,
    B. Raghu Prasad.

    Hi Raghu,
    is this adobe form in web dynpro ? if so, I suggest to go to [Web Dynpro |Web Dynpro ABAP; forum to get more advice because it seems to be more specific topic.
    Regards,
    Vincent

  • I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

    I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

    I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

  • Adobe Form Repeat a Subform Every Page

    Hello Adobe Forum,
    I'm an SAP user and am creating an Adobe form (my first). I posted this in an SAP forum, but have yet to receive any feedback whatsoever so I thought it may be better to go to the Adobe experts themselves. I've run into an Adobe issue and am just spinning and spinning trying different techniques to make it work. Any hints would be greatly appreciated.
    In my content area I have three subforms. The first subform is positioned, the fields have to be placed correctly. The second subform is fundamentally a table header for the third subform, which is the rows of the data. All three subforms are wrapped in another subform that is flowed.
    Why would I do it like this? Well, the table in the third subform has control levels so it merges like rows nicely in this way when the first column rows are the same...
    So the first page of my document would look like this...which is what I want.
    H is repeated for every page. So it is on the Master page. That's easy.
    1 is the 'sub-header' and should only be on the first page. This works.
    2 looks like a header for the table, but is really it's own table because of formatting requirements and the values are dynamic. It looks nice, but shows up only on page one.
    3 is the data table. It works great too.
    Page one looks great. Page two looks like this... I can't get part 2 from above to repeat for every new page.
    I have tried numerous approaches, but nothing seems to work. I really need to stick with the control levels, and that keeps me from having one nice table with a header that repeats. Perhaps I've approached this fundamentally wrong?
    Here is my layout in case that helps at all explain my issue. I truly appreciate any help, this is the last hurdle on my form and then it's done. I'm sure a seasoned Adobe person may quickly see the err of my ways.
    Thanks,
    Greg

    Not a solution I'm very fond of, but it works. I created a second page and put the table header on the master page there and moved the content area down a bit. I'd still like to force the subform to simply repeat, but I've got to move on.

  • Adobe Form -  How to set a condition for a Subform

    Hi All
    I am new in Adobe Form and learing it - (I had some knowledges of SmartForm) - One of the requirement I have to do is to print out a different layout (subform) according to a value of a flag.
    In Smartform, I can draw diffrent layouts and put a condition on each layout so each one can be printed accroding to the flag value.
    In Adobe Form, the subform (or any other object) cannot be conditional set - I don't know how to do it - Could comeone please show me how - I reward points for any reply - Thanks

    You are excused with your English - and you must excuse mine , too
    Your questions:
    But, how i write the condition ?
    1- If ( article.table1 = Null ) then ... ?
    2- If ( article.table1.Rangée1.SubForm2.lib_article.rawValue = " " ) then... ?
    Try this:
    1- // Locate the table node from to down
    var tNodes = xfa.resolveNodes("Table1[*]");
    If (tNodes.value == NULL)  {
        tNodes.presence = "Hidden" }     
    or
    2- // locate the varable fields and loop thru to check if they are all empty
    var fNodes_1 = xfa.resolveNodes("article.table1.Rangée1[*].SubForm2.num_article");
    var fNodes_2 = xfa.resolveNodes("article.table1.Rangée1[*].SubForm2.lib_article");
    var fNodesLength = fNodes_2.length;
    var table_empty = "Y";
    for (var fNodeCount = 0; fNodeCount < fNodesLength; fNodeCount++) {
       If     (fNodes1.item(fNodeCount).rawValue <> " ") or
              (fNodes2.item(fNodeCount).rawValue <> " ")      {
                 table_empty = "N";
    // Now find the table node and hide if if necc
    var tNodes = xfa.resolveNodes("Table1[*]");
    If table_empty = "Y"  {
        tNodes.presence = "Hidden" }    
    You must place those codes at the Subform Article level in Javascript mode
    Good Luck
    Edited by: Liem Van Duong on Jun 13, 2008 2:45 AM
    Edited by: Liem Van Duong on Jun 13, 2008 2:46 AM

  • Unable to view adobe form from portal

    Dear All,
    We have install SAP Enterprise Portal 7 ehp1 SP 7 standalone jave system on windows 2008 R2 oracle 10g
    We have ABAP system as backend system seperately and Single sign on is configured.
    when we access the portal with domain name line http://hostname.domain/52000/irj/portal, we are able to access the adobe form which is develope on abap system without any issue.
    but our issue started when we are trying to access portal only with hostname as http://hostname:52000/irj/portal
    we are able to login to portal but when we are trying to open the adobe form we are getting error
    No switch to HTTPS occurred, so it is not secure to send a password
    Could you please let me know any setting i have missed
    Sincerely
    Paresh

    Hi,
    We have ABAP system as backend system seperately and Single sign on is configured.
    when we access the portal with domain name line http://hostname.domain/52000/irj/portal, we are able to access the adobe form which is develope on abap system without any issue.
    but our issue started when we are trying to access portal only with hostname as http://hostname:52000/irj/portal
    we are able to login to portal but when we are trying to open the adobe form we are getting error
    No switch to HTTPS occurred, so it is not secure to send a password
    Since you have configured SSL, I assume that this configuration is done with fully qualified hotsname. Hence the certificate is generated based on this hostname.
    Now when you access your portal without typing fully qualified hostname, system is unable to locate a relevant certificate. Hence it lands up with a message "No switch to HTTPS occurred, so it is not secure to send a password"
    Hope this answers your query
    Regards,
    Deepak Kori

Maybe you are looking for