validation on textarea failed

tullski 17 Jul, 2008
Hi,

just wondering. If prototype validation enabled.
Validation seems to work on an input field, but not on textarea.

How can i validate a textarea field.

thx
M
Max_admin 17 Jul, 2008
Hi M, it should work of course unless the textarea doesn't have a name or there is something wrong!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Runamok81 16 Aug, 2008
I am having a similar problem.

I can't get any textarea fields to refill with post data after an invalid CAPTCHA. Currently, this feature works on my form only for the input fields. It seems input fields repost after invalid CAPTCH just fine, but not those nasty textareas.

Here is a comparison of my working input field
<label>Charity Name:
  <br />
  <input name="Charity_Name" type="text" id="Charity_Name" size="35" value="<?php echo $_POST['Charity_Name']; ?>"/>
  </label>
  <br />



and a non-working textarea field, where did I go wrong?
<label>What are your normal sources of funding?<br />
  <textarea name="Normal_Funding" cols="50" id="Normal_Funding" value="<?php echo $_POST['Normal_Funding']; ?>"></textarea>
  </label>


Thanks for any help!
-Runamok81
GreyHead 16 Aug, 2008
Hi Runamok81,

Textarea doesn't take a value attribute - instead you have to put the value between the tags like this:
<textarea name="Normal_Funding" cols="50" id="Normal_Funding" ><?php echo $_POST['Normal_Funding']; ?></textarea>

Bob
Max_admin 16 Aug, 2008
Hi Runamok81,

and do you have Chronoforms v3.0 BETA 1 or 2 ? if so then you have an option at the Antispam tab to do this itself without adding this php code!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Runamok81 16 Aug, 2008
Max,

Thanks for replying so quick. Sorry, for the simple Q. 😟 How would I check the version number from the joomla /admin page?

Thanks.
Max_admin 16 Aug, 2008
No problems, go to Extensions > install/uninstall > then to components tab, you can see Chrono Contact and beside it is the version!

or you can just open your form and look into the Antispam tab if the option iam telling is there or not ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Runamok81 16 Aug, 2008
Thanks for the help.

Looks like I have Chrono Contact 2.5 J1.5 RC3.1. The option you speak of is absent in the anti-spam tab. 🙄
I suppose the textarea validiation failure and postdata failure is a known bug? One last question...

Any workarounds you can think of that would be quicker than backing up the form, and installing the new Chronoform v3.0 BETA?

-Runamok81
Max_admin 16 Aug, 2008
Hi,

Bob's code above should work for the text area post data!
your textarea doesnt get javascript validated also ?

no backup and restore from Chrono 2.x to 3.x! form must be redone!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Runamok81 16 Aug, 2008
Bob and Max,
Sorry, I skipped bob's code reply, and jumped straight to yours, and some conclusions! Thanks for the quick reply! Works like a charm! You guys are lifesavers!
-Runamok81
This topic is locked and no more replies can be posted.