Skip to Content
avatar image
Former Member

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"


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


Edited by: skyblue on Aug 6, 2011 3:30 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 07, 2011 at 11:09 AM

    While this is not an Interactive Form issue, it seems more likely you'll get an informed response here than in Form Printing.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 09, 2011 at 03:53 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"
       main_sf2.pts_sf.presence = "hidden"

    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"

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Robert,

      Thanks for the reply...but i was able to solve it as it was mistake in the name selection.

      How ever i am back with another question.....

      I have created a form, page1 and with in that I kept two subforms.Anx1 and table.

      Anx1 is positioned and table is flowed. With in subform table I have a table,

      My problem is I am unable to see the table when printing.

      In subforms pagination is disabled.

      Please help meu2026

      More over in quick testing(using xml,by mistake in the Edit->formating property->preview -> I selected interactive and generated the xml.

      So now I could see some data populated which it has got from somewhere else,

      And in pdf out out the attachment tab is also blank.