> I need to simply take the value of one field (string), and > then prepend (and possible append) some info to it, and set > a field on the same for to the concatenated value. > > So basically.. > > function autoFills() { > if( document.myForm.thisfield.value != '' ) { > **set the value of another field on the form to 'something' plus > what's in "thisfield"** > return true; > } > }
How about this: function autoFills() { if (document.myForm.thisfield.value != '') { document.myForm.otherfield.value = 'something' + document.myForm.thisfield.value; return true; } } If it's any more than that, I must be missing something in my reading of your question. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists