cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hiding Subform/Table in Adobe forms.

0 Kudos
14,418

Hi,

    I am working on a Purchase order in MM and am trying to hide a field based on a condition. The condition is based on the document type that's getting passed on to the form from ME22N.

CASE LS_EKKO-BSART.   WHEN 'ZIMP'.     GV_DOC_TYPE = 'Import'.   WHEN OTHERS.     GV_DOC_TYPE = 'Local'. ENDCASE.

I am passing this variable's value to a text field on adobe forms titled

proc_type

The javascript I am using is as below;

if (proc_type.rawValue == "Local") then this.presence = "hidden" endif

I have used this code on the initialize event of the subform which I want to hide but it is not working as it should

LS_EKKO-BSART

has the values ZIMP, ZSER, ZEMER, etc. I want the subform to be visible only if the value of LS_EKKO-BSART is ZSER(Service Order).

View Entire Topic
davis_raja
Active Participant
0 Kudos

Have you tried it with FormCalc.

Here is an example using FormCalc.

if ( data.#pageSet[0].Page1.proc_type EQ "XYZ" ) then

$.presence = "visible"

else

$.presence = "hidden"

endif