Creating 3 part telephone input
Hi. Does anyone have an idea on the best way to change a variable called "NPHONE" into a 3 part telephone input instead of one input?
My problem is this is on a very very large site and is used in so many places that changing the database to fields such as "nphone1", "nphone2", "nphone3" is not feasible.
I am wondering if there is a way to take change what is already there into something like this:
<input type="text" maxlength="3" name="nphone1"> - <input type="text" maxlength="3" name="nphone2"> - <input type="text" maxlength="4" name="nphone1">
Then possibly set the existing form field name of "NHPONE" to equal the 3 form fields above?
I think this code below is setting another variable called "NPHN1" to equal what the original "NPHONE" variable was.
<cfset structinsert(arguments.formData,'NPHN1',arguments.formData.NPHONE)>
Would there be a way to swap out the above line of code to set "NPHN1" to equal my 3 new phone fields?
Thanks in advance for your time.
