Adobe Form want to hide Subform

Hi All,
I am using a subform as a table item in my adobe form.
I have two levels of item level data.
I want to hide the whole subform containing the second level of data based on the value of afield.
Scenario is for a particulare item level data i have some sub items.
The subitems is nothing but material details corresponding to a operation(a work order can have multiple operations,work order is header).
So I want to stop/hide the whole subform of material details if Material is initial.
To be more clear i want check the value of a particular field and if its intial i should not display the subform.
Please help me with what to write in the script editor of the adobe form.
Thank you very much in advance.
Regards,
Kishore.

Thank you very much for the help.
However this is not working,I think  I have not explained you myproblem clearly.
I have 'Table Item' subform below this I have one more sub form 'Material' Subform.
Table Item Sub form displays the Operation Detaild of a Work Order,and Material subform displays the Components of a Operations.
So I want stop the presence of Material Subform when varaible Material is absent.
Please let me know if its still not clear.

Similar Messages

  • Adobe form adding condition to subform

    I have added an image to a subform and I would like to display that image if certain condition is true.
    I added following code ing "readOnly" but its not working
    if ($record.............................. <= "1000")
    then
    this.presence = "visible"
    else
    this.presence = "invisible"
    endif
    what should be the correct code?

    Hi,
    Method1:
    Select the Subform,then Goto Object Palette,select presence as Hidden and exclude from Layout.
    Then select the event "FormReady" if your Subform is in BodyPage or Select event "LayoutReady" if you Subform is in Master Page and place your code either in FomCalc or in Java Script.
    Method2: Create an Alternative in the Context and specify the Condition on Alternative.
    Then goto Layout and drag the Alternative on to the respective Page (Body Page or MasterPage) and Place your Subform under TRUE.
    Thanks.
    UmaS.

  • How to hide Subform

    Hi ,
    The scenario is " I want to Hide subform based on page condition like if page number is > 1 the subform should not print"
    I have written the code Subform-initilize event in Javascript like ,
    if (xfa.host.currentPage > 1)
    this.presence = "hidden";
    But above if condition in not working .
    Please help me to solve this problem.
    Regards,
    Sanket.

    Hi Sanket,
    Use following script in the initialize event of subform.
    var pageNum = xfa.layout.pageCount();
    if(pageNum>1){
       this.presence = "hidden";
    Thanks & Regards,
    Sanoosh

  • 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

  • How to hide 'SAVE' button in adobe form layout

    Hi  Friends,
    I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
    Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
    Thanks and Regards,
    Subeesh Kannottil

    Hi Subeesh,
    Are you talking about restricting the User from Saving the Adobe Form Output. 
    Regards,
    Sivanand Ala

  • 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

  • ADOBE FORM: Start new page at subform

    Hello,
    in the interface of my adobe form i have a table.
    I created a subform with binding to the table row.
    This works so far.
    But i want now that for each table row (= subform) a new page is started at the PDF.
    How could this be realised?
    Thank you
    Kind regards
    Manfred

    These can be done via options in Pagination tab for the "Body Row" of table.
    I just tried a sample as follows and it kind of worked.
    form1
    |-- Subform    // Object palette --> Subform tab --> Make its Content property to Flowed.
      |---- Table1
        |---- Row 1  
    // Object Palette --> Type is Body Row
    //  Object Palette --> Pagination --> After : Go To Next Page
    //  Object Palette --> Binding --> Selected Repeat Row for each Data Item and made its min count as 5
    Only thing is that I am getting a blank page at end but then may be this can point you in some direction and you will solve that for us

  • ADOBE FORM - Start subform on current page only if space is there

    Hello,
    i have created an adobe form for printout of CRM business partner details.
    The form consists of several subforms.
    Each subform consists of a text as header and a table.
    examples for the subforms:
    - contact persons of account
    - opportunities of account
    - quotations of account
    - orders of account
    - servicerequests of account
    now i face the issue that in some cases the header text of the subform is on the end of one page and the table starts at the next page. How can i configure my adobe form in a way that subform starts only on current page if there is enough space for at least 1 table entry?
    Thank you
    Best regards

    Hi,
    Sorry but i do'nt think that's possible to check dynamically if there is enought place on the form for at least one table line .
    Perhaps you can explore this kind of solution
    Subform 1 => Table content => Allow page break
    Subform 1-1 => "New Header" this one can't allow page break
    Subform 1-1-1 => Real Header
    Subform 1-1-2 => First item
    Subform 1-2 => Items form line 2 to x.... Allow page break
    For this you must modify the context of the form because your table will be read from line 2 to ... and you must add a single record for line 1.
    Also if you want to repeat the real header forms on page break, you can set it on subform 1-2 when overflow is needed.
    Hope this help you.

  • 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

  • Print preview need to hide for Adobe form

    hi frineds
      I have created a function module which converts the adobe form in pdf using the function module FP_FORMOUPUT, When ever i execute the function module it ask for print preview. I dont want print preview. Since i need to use this custom function module in my worklfow. If its a smartform i can hide the print preview nodialogue = 'X'. But there is no such option in Adobe form. How can i achieve this. Am using ABAP not webdynpro.
    Regards
    vijay

    Answer there is a function module FP_JOB_OPEN which is used to hide print preview, dialog and so on. This function module only i was looking on. I got by myself.

  • Repeating subform on each page in Adobe Forms

    Hello all,
    I created an Adobe Form, where the body is splitted in subforms (all flowed).
    But now, I want that the first subform must be showed on each page on the Adobe Form. A masterpage cannot be used, because soms field have no data and are not showed on the PDF.
    Does anyone know how the first subform of the body can repeat on each page?
    Kind regards,
    Pieter

    Florian,
    I already tried in Javascript for initialize and from.ready methods..
    Now, I tested in Formcalc but the output is the same.
    Page 1:
    On the next pages:
    So, on all the next pages a white space still appears..
    Kind regards,
    Pieter

  • 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

Maybe you are looking for

  • Help Clean Up my iTunes

    I use an external hard drive to store all of my iTunes data.  Recently, I was getting worried that it may crash, so I bought a new hard drive.  While making the switch, I decided it was time to clean everything up and start fresh. So.... What I've be

  • How to create an array of a cluster?

    Hello! Now we need some help or tip again :-) We have an array of strings coming out from a for-loop. We want to pick this array in peaces and get the string-elements out. These elements we want to get into a cluster together with boolean constant. O

  • Empathy not displaying notifications when contacts sign on

    I have recently decided to give Gnome 3 a try.  I have run into an issue with notifications from Empathy.  I receive popup and audio notifications when a contact sends me a message, and I am getting audio notifications when contacts sign in; however,

  • Slippery problem: disappearing data from SMB shares

    I have an Xserve running 10.5.8 serving as a Samba PDC for my school. Clients are using XP Pro SP2. Every user gets a home directory which is mounted at logon as a mapped drive, and a profile folder which contains the Desktop, My Documents, personal

  • SecurityDomain/Settings bug?

    Hello all! I've encountered a strange situation, when googling does not help at all. :/ So, I have two swfs, app.swf and p2p.swf. The app.swf is on the domain-app.com. The p2p.swf is on the domain-p2p.com. The app.swf loads the second one using the f