Page 1 of 1

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

Posted: Mon Sep 03, 2012 8:32 pm
by Tom, Tech Support
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 24863 times
For more information on using CSV files with iMacros, see Input from Comma Separated Data (CSV) File.