Field Swap

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
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
Posts: 1
Joined: Thu Feb 22, 2007 6:39 pm

Field Swap

Post by dB02 » Thu Feb 22, 2007 6:43 pm

Can anyone tell me the macro I would need to swap two fields.

Say I have a form with a bunch of names in it. First name/last name say. Except they are reversed. Is there a macro that can copy and paste them, basically swap them into each other then hit submit?
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm

Post by Tech Support » Fri Feb 23, 2007 1:04 pm


Depending on the website you should be able to EXTRACT each of the names and SET an internal variable to hold each of the values. You could then use the TAG command to populate each of the fields with the appropriate value.

More on these commands can be found in our online user manual:

Daniel Kerr
iOpus Support
Post Reply