Skip to Content
Author's profile photo Former Member

Hiding a field in PDF form-Adobe Interactive

This tutorial explains about hiding a field in the PDF form using Adobe Interactive. In this example the Customer master details are displayed. To add general comments about the customer a check box is added in the form. When the user checks the check box an additional text field will be opened to enter the details.

Goto transaction SFP and create an Interface. Using the interface create the form layout.

The below screen will be displayed.

/wp-content/uploads/2013/10/1_295845.jpg

Expand the import parameters under the Interface column.

Drag and drop the parameter from the interface column to the form context for layout designing.

/wp-content/uploads/2013/10/1_295845.jpg

The parameters will be copied to the form context.

/wp-content/uploads/2013/10/2_295850.jpg

Got to layout tab.

The context node parameters will be displayed under Data view

/wp-content/uploads/2013/10/3_295851.jpg

Drag and drop the LX_KNA1 subform to the layout. The layout will be designed as shown below.


Now drag a check box and a text field to the layout. Our functionality is to make the text field visible only when the user selects the check box.

/wp-content/uploads/2013/10/5_295853.jpg

Choose the check box and select the event FORMREADY and language as JAVASCRIPT

/wp-content/uploads/2013/10/6_295854.jpg

Write the below code. This event is for making the check box invisible when the user opens the form.

1st_code.JPG

Now choose the event CLICK for making the text field visible when the user selects the check box.

2nd_code.JPG

Activate the form and create a report program .Call the form using the below FMs

CALL FUNCTION ‘FP_FUNCTION_MODULE_NAME’
CALL FUNCTION ‘FP_JOB_OPEN’

Note that for Interactive Adobe, pass FILLABLE and DYNAMIC parameters of the Interface’s exporting parameter /1bcdwb/docparams.
CALL FUNCTION ‘FP_JOB_CLOSE’

/wp-content/uploads/2013/10/8_295862.jpg

Output:


When the user opens the form for the first time the text field will be invisible.

/wp-content/uploads/2013/10/9_295863.jpg

When the user checks the check box the text field will be shown.

/wp-content/uploads/2013/10/10_295864.jpg


Jayashree Thiyagarajan

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.