PDA

View Full Version : How to populate entered into text1 into multiple textboxes


ymdk
07-02-2012, 06:07 PM
Hi, I have a form that user enters text in Text1. I need Text1 contents to be repeated throughout the form seven times in different paragraphs. What is the best way to do this ??

<input name="TEXT1" type="text" value="" size="20" maxlength="50"/>

I tried simply copying and pasting the code where needed, but this causes unnecessary blank spaces (not sure why).

How can I populate TEXT2, TEXT3, TEXT4, TEXT5, TEXT6, TEXT7 with contents of TEXT1?

Thank you.

edbr
07-03-2012, 02:21 AM
have to ask why do you need it repeated?
I deleted the other post please dont duplicate posts

ymdk
07-03-2012, 02:45 AM
The jsp form is a legal document that needs the name entered once repeated throughout the form.

edbr
07-03-2012, 03:51 AM
then could it not just be collected from the one field? seems possibly redundant to make it automatic to repeat

domedia
07-03-2012, 03:19 PM
Yes, what Ed said. Particularly if the fields needs to have the same value.