using text modules in adobe forms
TRANSCRIPT
![Page 1: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/1.jpg)
Using Text Modules in Adobe Forms
By Nikunj Shah, YASH Technologies
In this demo we will create an adobe form which displays text in two different languages (English or French) based on the given condition. This functionality is achieved by using TEXT MODULES in adobe forms.
Step1: Go to transaction SFP and create an interface for the Adobe form.
Note: Maintain Interface type ABAP-Dictionary Base interface. (IN ECC6.0 Version)
Step2: Create an import parameter as shown below:
![Page 2: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/2.jpg)
Step3: Save and Activate the interface.
Step4: Now go to transaction Smartforms to create Text Module for the Language Conversion, Select Text Module and Enter Text Module Name & Click on
create.
Here, we are converting English text to French text, so we have to enter the French conversion of the English text.
Text 1: TEXT IN ENGLISH.
![Page 3: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/3.jpg)
Click on Save.
Similarly create the text module for text French to English.
Text 2: TEXT IN FRENCH
![Page 4: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/4.jpg)
Text 3: TEXT IN ITALIAN
STEP 5: Once the Text modules are created, Go to Transaction SFP to design form builder for the interface ZTEXTMODULE_TEMPLATE.
![Page 5: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/5.jpg)
STEP 6: Click on Create.
![Page 6: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/6.jpg)
STEP 7:
After clicking on create, the system would prompt you for the Interface name and description.
In Interface Name tab : ZTEXTMODULE_TEMPLATE.
In Description : Form for the Language Conversion.
Now the following screen appears:
![Page 7: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/7.jpg)
STEP 8:
Right Click on Form name in the context area and create New Folder.
![Page 8: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/8.jpg)
STEP 9:
Drag & Drop Flag1 field from the import part in to the Context area.
STEP 10:
![Page 9: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/9.jpg)
Right Click on New FOLDER, create three texts for the text modules.
STEP 11:
![Page 10: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/10.jpg)
Double click on the new folder. The following screen appears. Click on Condition
STEP 12:
Double-Click on Text and maintain the properties as shown below.
Description as Convert TEXT INTO ENGLISH into FRENCH
Text Type : Text Module
Text Name : Text Module name (‘ztest_french’)
Text Language : ‘FR’
![Page 11: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/11.jpg)
Repeat the above step for the other texts as well.
STEP 13:
Click on Layout.
On the left side platter, in data view, we can view all the fields that we defined in the context part. (In this example, flag1 and three texts)
![Page 12: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/12.jpg)
STEP 14:
In our layout, let us also include a logo and some text as well.
Go to Master Page. From Library Palette, insert image field and text into the master page.
Enter text in text field and Enter image in image field and check the checkbox “Embedded image data”.
![Page 13: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/13.jpg)
STEP 15:
Go to Body Page.
Create following three text fields:
Text in English Text in French Text in Italian.
Now right click on the text field and select the option “floating fields”.
![Page 14: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/14.jpg)
Now we need to do the binding for the text field. Select the text field “Text in English”, Click on palette à click on object àgo to binding tab. Please see the following screenshot for the binding.
![Page 15: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/15.jpg)
Now repeat the above step for binding the other two text fields.
STEP 15 - 2:
Second way is Drag & Drop from the Data view.
Just below the text field drag & drop the text field from the data view, in this case you don’t have to do the binding, it will assign automatically.
![Page 16: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/16.jpg)
STEP 16:
Click on Save and Activate it.
STEP 17:
Click on Execute. Assign Value ‘X’ to Flag1. Otherwise it only display in English. If FLAG1 has value ‘X’ than test will display in English & French Both.
![Page 17: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/17.jpg)
Output:
![Page 18: Using Text Modules in Adobe Forms](https://reader034.vdocument.in/reader034/viewer/2022042505/5522409b4a7959575e8b4801/html5/thumbnails/18.jpg)