• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Display Results for TextArea fields

New Here ,
Oct 04, 2023 Oct 04, 2023

Copy link to clipboard

Copied

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>

 

 

 

Views

106

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 05, 2023 Oct 05, 2023

Copy link to clipboard

Copied

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 05, 2023 Oct 05, 2023

Copy link to clipboard

Copied

LATEST

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

Mike Bowman

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation