Pull data from a CSV file and put it into a web form

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
orangecat
Posts: 1
Joined: Sat May 25, 2013 2:26 am

Pull data from a CSV file and put it into a web form

Post by orangecat » Sat May 25, 2013 2:30 am

I've a webform that has multiple fields , how shall I make Imacros extract data from a CSV file(multiple rows of data) ,from the 1st row and fill the form ,then the 2nd row and fill the form again and so on till the end of the csv file.
skippyto
Posts: 108
Joined: Wed Aug 20, 2008 8:14 am

Re: Pull data from a CSV file and put it into a web form

Post by skippyto » Tue May 28, 2013 1:44 pm

HI !

You can try with a js :

Code: Select all

rowNumber=0 ;
iimSet ("-var_FILEROW", rowNumber) ;
while (iimPlay("MyMacros.iim"))
{
	rowNumber ++ ;
	iimSet ("-var_FILEROW", rowNumber) ;
}
Skippyto
chivracq
Posts: 9494
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Pull data from a CSV file and put it into a web form

Post by chivracq » Thu Jun 06, 2013 7:07 pm

@OrangeCat: What you want to do is exactly what is demonstrated in 'Loop-Csv-2-Web.iim' in your Firefox-Demo Macros...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Post Reply