Skip to main content
Participant
October 5, 2023
Question

Display Results for TextArea fields

  • October 5, 2023
  • 1 reply
  • 156 views

I am a novice ColdFusion user. I am trying to display results taken from an Access database to a CF form in which users can update their responses and then re-submit. Some of the fields displayed can be responsed in one line such as #1 below (which is correct).

However, I need to code how to display results to a bigger TextArea field such as #2 below which is not coded correct. How should #2 be re-written so that it can be displayed?

 

#1

<tr>
<td width="20%" height="25"><b><font size="3" color="#FFFFFF">Kids-Ages<br>
</font></b></td>
<td width="54%" height="25">
<input type="text" name="Kids" value="<cfoutput>#Query1.Kids#</cfoutput>" size="40" maxlength="40">
</td>
</tr>

-----------------------------------------------------------------------------------------

#2

<tr>
<td width="20%" height="25"><b><font size="3" color="#FFFFFF">Grandchildren<br>
</font></b></td>
<td width="54%" height="25"> <b>
<textarea name="Grandchildren" cols="100" rows="3">value="<cfoutput>#Query1.Grandchildren#</cfoutput>"</textarea>
</b></td>
</tr>

 

 

 

    This topic has been closed for replies.

    1 reply

    Charlie Arehart
    Community Expert
    Community Expert
    October 5, 2023

    The textarea tag does not need the value attribute. Whatever is between the tags is what ends up in the box on-screen.

     

    Indeed, you should be finding you SEE the spurious value= string appearing in it, along with the quotes. You've not confirmed this, but is it so?

     

    Finally, this is of course not technically a cf question but an html one, and there are many (many) resources online about how to work with evens such specific tags as that one.

     

    Hope this gets you going. 

    /Charlie (troubleshooter, carehart. org)
    MikeyBAuthor
    Participant
    October 5, 2023

    Thanks, I will take your suggestions and give it shot.

    Mike Bowman