Jump to content
Sign in to follow this  

Taking array and pasting into a textarea on a webpage

Recommended Posts


Hey All!

I want to be able to set an array of tracking numbers into a formobject on a webpage but having some difficulty.  If I were to just paste the numbers from my clipboard they all line up like so...






Is there a way to take the array which is only 1 column and format it to a variable that I can _IEformelementsetvalue where they all line up in a column?

Maybe clipboard functions are the way to go but wasn't sure.

Wondering if anyone ever had to do this?

Thank you very much!

Share this post

Link to post
Share on other sites

May not be the most efficient but seemed to do the trick.

If someone else needs. $inputs is my array and it's one column.

Thanks for the help Dan!

 $track = $inputs[$inputrow][1]
 $inputrow = $inputrow + 1
 $finaltrack = $finaltrack & @LF & $track
 Until $inputrow = $counter + 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this