Jump to content

Pasting text in multiple boxes (like 4-part serial key validation for installer)


Recommended Posts

I made a CMS for TONS of complicated data to insert. I made multiple text boxes for each unit of data (i.e. 10 textboxes for quick-insert of 10 employees). I have text files with tons of data to post to the database.

I want to copy 10 units, paste them into the first textbox, and I want it to be pasted to other 9 textboxes. Is that possible?

 

EXAMPLE :

(copied text):

 

Name Surname

Name Surname

Name Surname

Name Surname

Name Surname

Name Surname

Name Surname

Name Surname

Name Surname

Name Surname

 

(pasted):

1.textbox > Name Surname

2.textbox > Name Surname

3.textbox > Name Surname

4.textbox > Name Surname

5.textbox > Name Surname

6.textbox > Name Surname

7.textbox > Name Surname

8.textbox > Name Surname

9.textbox > Name Surname

10.textbox > Name Surname

normal textbox can't accept multi line text (you'll only get the first line), you can either seperate the names with a comma (or other character) or paste them into a textarea.

 

For paste the data into different fields, you can simply add an onkeyup event to your field, split the value and populate the other fields.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.