You can use the below code on button's click event DropDownList1.addItem(TextField1.rawValue);DropDownList1.addItem(TextField2.rawValue);DropDownList1.addItem(TextField3.rawValue);DropDownList1.addItem(TextField4.rawValue);DropDownList1.addItem(TextField5.rawValue);DropDownList1.addItem(TextField6....
Change the caption position of textfield to 'top' from the Layout Palette and make a rectangle over it. After these settings it will look like as below
I have uploaded the file where i have created 2 textfield. If you enter some text in textfield1 that contains space, it will display the same text in textfield2 without spaces. https://workspaces.acrobat.com/?d=rqxwyQuc7qBv9iq-NPAk4Q