Forums

Incorrect verification code question

sam18204 31 Dec, 2009
Hello,

I've started testing my completed forms before they go live. All is going well but after entering in the incorrect verification code on purpose, I noticed all of the fields are empty after the page redirects with the error message.

Is there anyway to keep the content the user has filled out (I only have name, email, message) or least just the message field?

Thanks in advance.
GreyHead 31 Dec, 2009
Hi sam18204,

On the form General Tab set "Republish fields if error occured" to "Try to republish"

Bob
sam18204 01 Jan, 2010
this worked. thank you and happy new year
camerata 14 Jan, 2010

On the form General Tab set "Republish fields if error occured" to "Try to republish"


Ok. But how to fix it when the form has a HTML editor text area like in submitcontent sample form?
The other text fields (title and alias) keep the data but not fulltext.

Thanks in advance.
GreyHead 14 Jan, 2010
Hi camerata,

In the Form HTML you need to set the default value for the text area:
$editor =& JFactory::getEditor();
echo $editor->display( 'fulltext', JRequest::getString('fulltext', '', 'post'), 
  '80%', '350', '55', '20', false ) ;
should to it
Bob
This topic is locked and no more replies can be posted.