|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Data in variables being truncated when assigned to text or hidden inputs
I have a template (myForm1.cfm) that is being posted to another template (Action1.cfm).
In myForm1.cfm I have a variable called myVar and I'm assigning it to myVar input box. E.g., <INPUT NAME="myVar" TYPE="hidden" VALUE=#myVar#> myVar may equal "This is a test" but when assigned to the input field, the field only contains the value "This". It's truncating at the spaces. Thus, when I try to reference #Form.myVar# in my action template, I get truncated data. Any ideas? Thank you. |
|
#2
|
|||
|
|||
|
Solution
In my tag statement I didn't have double quotes around my variable when setting the value param
e.g., <INPUT NAME="myVar" TYPE="hidden" VALUE=#myVar#> should look like: <INPUT NAME="myVar" TYPE="hidden" VALUE="#myVar#"> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > Data in variables being truncated when assigned to text or hidden inputs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|