Skip to main content
Inspiring
September 13, 2011
Question

usage of cftextarea and get value

  • September 13, 2011
  • 2 replies
  • 3540 views

I used the cftextarea to get the FCK editor, like :

<cftextarea name="txt_h_1" message="Insérer le texte d'Accueil !" height="400" width="700" disabled="No" required="Yes" toolbaronfocus="No" bindonload="No" html="No" enabled="Yes" visible="Yes" richtext="Yes" toolbar="Basic" skin="silver">#get_param.txt_home_1#</cftextarea>

So the name of the element is : TXT_H_1

Ans when I want to save the content via an update query, it says that :

Element TXT_H_1 is undefined in FORM

All other FORM elements are well returned.

then how to get the value of the cftextarea ?

(I used a CFFORM with <input> inside instead of <cfinput>)

thanks for answer.

Pierre.

This topic has been closed for replies.

2 replies

glamorous_Wonder6C1C
Inspiring
September 21, 2011

As you say "If I copied the CFIDE (all files) in a website root, it does work."

You have no no need to copy it again and again. You can do it from IIS also. You need to add CFIDE under your virtual directory.

Like if have site named "anysite", you need to right click on and choose add. After clicking add named the virtual directory as "CFIDE" and point it to actual CFIDE directory of coldfusion.

Inspiring
September 13, 2011

What are you looking at to determine that you got every form element except the textarea?

plartsAuthor
Inspiring
September 14, 2011

After the form submit,

I expect to get all form.xxx elements

i have all except the one from the cftextarea

which should be : #form.txt_h_1#

The cftextarea name is : txt_h_1

This is the way I get all other fields values entered in the form.

Thanks for your participation.

Pierre.

BKBK
Community Expert
Community Expert
September 19, 2011

Here's the cause of the trouble: disabled="No" enabled="Yes".

The browser probably disables the textarea the moment it encounters the word 'disabled'.  In any case, it is repetition to use the attribute 'disabled' as well as 'enabled'. In fact you could omit both!