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

cftextarea

Guest
Nov 30, 2008 Nov 30, 2008

Copy link to clipboard

Copied

Hi i have a cftextarea

i need to populate the value param if a session isdefined, i have tried this using javascript, but cant get it to work, any ideas how to do this?

<cfif isdefined ("session.message")>
this.form.message.value = "message here"
</cfif>
TOPICS
Advanced techniques

Views

438

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
LEGEND ,
Nov 30, 2008 Nov 30, 2008

Copy link to clipboard

Copied

Why don't you just use the value attribute of cftextarea?

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
Explorer ,
Nov 30, 2008 Nov 30, 2008

Copy link to clipboard

Copied

LATEST
or??
<CFTEXTAREA...>
<cfif isdefined ("session.message")>
#session.message#
</cfif>
</CFTEXTAREA>

not sure if you need CFOUTPUT around the #session.message#

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