Skip to main content
Participant
Oct 5, 2023 5:32 AM UTC
Question

Display Results for TextArea fields

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Charlie Arehart
    Community Expert
    Community Expert
    Oct 5, 2023 1:19 PM UTC

    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. 

    Translate
    /Charlie (troubleshooter, carehart. org)
    MikeyBAuthor
    Participant
    Oct 5, 2023 5:57 PM UTC

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

    Mike Bowman

    Translate