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

Similar Messages

  • 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

  • Displaying Adobe Form through CRM WEB UI

    Hi Experts,
    Currently I am working on CRM Technical which is very new to me. I've got a requirement to display the Adobe form through CRM WEB UI. The requirement is like this.
    In a screen of WEB UI there is a option of OUTPUT preview. When i select the specific billing document and when i click on OUTPUT Preview tab it should display the Adobe Form which was developed in SAP GUI using txn SFP. I have done some R&D on it and i found that an ACTION Profile need to be created for this kind of requirements. But in my research i found only Smartforms can be displayed using the ACTION point.. Could anyone help me out how to display the Adobe Form using the Action......
    Regards,
    Aarthi.
    Moderator message: please have a look in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Jan 11, 2011 1:51 PM

    Hi Robert,
    I came across this post after implementing the same solution.  It works fine for me in SAPgui, i.e. it creates an entry in the spool which I can priview or print, but when I use the webUI it just opens a new window with a white background and the message 'Error in smartform'.
    Nitin, did you manage to come up with any solution?  Or did this work for you?
    Regards,
    Simon

  • Add Button to Display Adobe Form through SPRO

    Hello All,
    I am trying to add a button to display Online Interactive Adobe Form through SPRO but its not working.
    So please suggest me how can i add a button for it ASAP.
    Thanks and Regards:
    Anugrah

    method ONACTIONCLICK .
      wd_this->fire_o1_plg(
    endmethod.

  • 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.

  • Add a button to display Adobe Form through SPRO on T-code IQS22

    Hello All,
    I am trying to add a button to display Online Interactive Adobe Form through SPRO on T-code IQS22 but its not working.
    So please suggest me how can i add a button for it ASAP.
    Thanks and Regards:
    Anugrah

    I asked my question in hopes that somebody has maybe had a similar question or has dealtwith something similar to what I am trying to do
    But you said you already know how to do this. You said you know how to create a JFrame and display it. So what is your problem?
    You said you know where to add the code. So again what is your problem?
    All you posted is code that was generated by the IDE. You have not make any effort to add your own code. Why do you think the code to show a frame here, is any different than the code you used to show a frame in the past?
    You learn by trying, not by asking people to spoon feed the answer to you.
    If you would even make the slightest effort at filling in the code where the IDE has told you to add the code I would be more willing to help. But apparently you have no desire to make the effort.

  • Sending Adobe forms through Email and Fax

    Hi ,
    I have created an Adobe Form i.e. PO Form,
    whose print/driver  program is customised / based on SAPFM06P and routine used is ADOBE_ENTRY_NEU.
    So , now I use the transaction ME22N and use the External Send option i.e sending Email , but the Email is getting sent to Spool instead of SOST.
    So what changes do I need to make .
    Can anyone tell me how do we send an Adobe Form through email * in which routine is based on Adobe_entry_neu .
    Thanks  in advance,
    Rohit

    Hi,
    Thanks for reply
    The link u mentioned utilises Objects.. but can we send internet mail using this?
    As we cannot change RECIPIENT TYPE in this case in the object.
    I used this format in the program but the attachment is going to EXpress inbox. and goes to my SAP Inbox instead of Email .
    So what changes we need to do for this.
    Alternatively,  can we use FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' for this purpose?
    Edited by: Rohit Pareek on Feb 3, 2009 3:36 PM

  • 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

  • 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"

  • Cell hiding problem in adobe form

    Hi,
    I am making a adobe form which contain 5 row and 5 column and i am filling this by using internal table . My requirement is  : when internal table doesn't contain some column(means suppose column 4 doesn't contain any value then i want to hide from 4th column) value i want hide from that column dynamically.
    Regards,
    Durga

    Hi Gupta,
    Please refer the below links
    Hiding a table column for a particular condition
    Adobe Community: How to hide table with empty content using Javascript? 
    Hope this helps you.
    Regards,
    Rama

  • Unable send ADOBE form through email as attachment

    Hello experts,
    I was trying the [tutorial |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee8a84ea-0c01-0010-5691-accfb0a172ed] on ADOBE interactive form through GP.
    I am not able to send a form as an attachment as specifies in the document.
    I have checked for all the required settings mentioned in the document and all seems to be ok.
    Can anyone please provide a ray of help on how do I enable a ADOBE form to be passed as an attachment through email.
    Thank you.
    Ashutosh

    Hi,
    just use a "Standard button", select it and go to the "Object" -> "Field" tab. Set the control type to "Submit". Go to the "Submit" tab. Set the submit format (e.g. PDF) and set the URL to "mailto:<receiver's email address>".
    This will work fine without any JavaScript.
    Take care,
    Thomas

  • 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";

  • Addition of fields in Adobe forms using JavaScript or FormCalc

    Hi All,
    I have a few amount fields in my Adobe form. I want to calculate their sum and show it in another textfield. Any ideas how this is done using JavaScript or FormCalc.???
    Thanks and Regards,
    Sameer

    Hi Sameer,
    you cant use JavaScript here in Web Dynpro. But if you want to calculate the sum through a button click that can be done through the Action Handler method.
    Suppose you have 2 fields to add whichare field1 and filed2 in the context tree and the sum will be shown in field3 of context tree - all of numeric data type - obviously. So you can do the following in the action handler method.
    int sum = wdContext.currentContextElement().getField1() +
              wdContext.currentContextElement().getField2();
    wdContext.currentContextElement().setFields3(sum);
    Regards,
    Shubhadip

  • Send the adobe form through webservices

    Hello all,
    i have a requirement in adobe form. When i click on submit button the total pdf form have to be sent through webservices and update as a string in a SAP ztable. so that i can retrieve the string and convert it into pdf again and reuse it.
    can anyone suggest, is it possible to do. Please suggest if anyone already worked on this scenario before or like.
    Thanks in advance,
    Prakash reddy .S

    Hello Sreelatha,
    I think we cannot hide a page.  as in, page is the main container.  In a container, we can hide any field using some scripting.  Even though if we hide the field, it is present on page but not visible. 
    but if some logic is there, please let me know.
    Thanks,
    Rakesh.
    Edited by: rakhi966 on Sep 8, 2011 8:54 PM

  • 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

Maybe you are looking for

  • XSQL error when trying to insert record

    hi, I encounter a problem using INSERT statement in xsql:query action. If I try to use INSERT statement in my xsql page like this: <xsql:ze_action bean="TaskentryIn"> <xsql:query> INSERT Grundtab( Datum,Startzeit,Endzeit) VALUES ('{@date}',{'@begin}'

  • How do I remove "ALL" incontext editing code?

    Hi, I am hoping someone maybe able to help... A while ago I put a site together at applied incontext editing regions. After being notified that it will no longer work in May this year, I decided to purchase contribute and went through the labourious

  • JTable Horizontal Scroll WHEN NEEDED fix?

    Me again.... JTable in a JScrollPane When the Jtable width exceeds the scrollpane I would like a horizontal scrollbar to appear. If the Jtable does not exceed the width Id like it to fill the ScrollPane. If I use the AUTO_RESIZE_OFF I get a horizonta

  • AP Overdue analysis only shows one BA; why?

    Hi I have a AP Overdue analysis report in BW; For some reason the BW report is run with Business area "SD" only eventhough SAP has invoices other tha BA SD. For the documents that has different BA in SAP still shows SD in BW report for those document

  • How to create reservation for a particular material through Production orde

    Hi gurus How to create the reservation manually and through production order? Kaisar