cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding a window in the adobe form

Former Member
0 Kudos

Hello all,

I have maintained a counter in the program I_CLASS....iF i_class is space I need to hide a window in the adobe form....can any one tell me the process to do it. we have tried a script to hide it...

if ( $.I_CLASS.rawValue == "X" ) then

$.Send_invoice.Street.presence == "INVISIBLE"

endif

It is not working...I have taken all fields in the window to a sub form and the aain the main window in to an another sub form...I have moved the i_class counter to this main sub form...then I have tried the given script....Can any one suggest me any solution for this....................Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You have code in Formcalc scripting language, if its ok for you try the below java script code on formready event of I_Class.

Send_invoice.Street.presence = (I_CLASS.rawValue == "" || I_CLASS.rawValue == null) ? "hidden" : "visible";

make sure you are referencing street & I_Class with the correct heirarchy paths often this was the mistake most people do.

have a try and let me know for any queries ...

Cheers,

Sai.

Former Member
0 Kudos

Hey buddy...check the syntex...it should be like dis

if ( $.I_CLASS.rawValue == "X" )

$.Send_invoice.Street.presence == "HIDDEN";

Endif should not be der and it will end with ' ; '

Keyword HIDDEN is used to hide the total window/space, but INVISIBLE, takes window space any ways though it does not print anything.

Former Member
0 Kudos

hi,

well according to your requirement,

your script should be :

if ( $.I_CLASS.rawValue == " " ) then

$.Send_invoice.Street.presence == "HIDDEN"

endif.

but you wrote :

if ( $.I_CLASS.rawValue == "X" ) then

$.Send_invoice.Street.presence == "INVISIBLE"

endif

Former Member
0 Kudos

Hi,

I have kept "X" coz I dont have test data for space....Its not working

Former Member
0 Kudos

hi,

are you sure you are getting the value of

I_CLASS = "X"

also change the below from

$.Send_invoice.Street.presence == "INVISIBLE"

to

$.Send_invoice.Street.presence = "INVISIBLE"

it could be a syntax problem