How to enter a large amount of text into a text area field

Information related to the use of iMacros for form filling and data upload.
Post Reply
Tom, Tech Support
Posts: 3353
Joined: Mon May 31, 2010 4:59 pm

How to enter a large amount of text into a text area field

Post by Tom, Tech Support » Mon Sep 03, 2012 8:32 pm

Simple!

Just put all of the text into a CSV file. This is as easy as pasting the entire text into a text editor like Windows Notepad, then adding double-quote characters at the beginning and end of the text and saving it with a .csv extension. Of course if your text already includes double-quote characters within it, they will need to be escaped according to the rules of CSV files. It's also OK if the text contains line breaks.

Once the file is saved, you can reference it as a datasource for your macro.

Here is an example:

Code: Select all

TAB T=1
TAB CLOSEALLOTHERS 
SET !DATASOURCE longText.csv
SET !DATASOURCE_LINE 1
URL GOTO=http://www.iopus.com/imacros/demo/v6/f1/form.asp
TAG POS=1 TYPE=TEXTAREA FORM=NAME:TestForm ATTR=NAME:Remarks CONTENT={{!COL1}}
longText.zip
longText.csv
(2.42 KiB) Downloaded 1965 times
For more information on using CSV files with iMacros, see Input from Comma Separated Data (CSV) File.
Regards,

Tom, iMacros Support
Post Reply