Very strange, if the Form Code includes a closing </textarea> the form definition will not save. Clicking Save, Apply, or Cancel does nothing. If I simply remove the text "</textarea>" the buttons start working again. Any suggestions? The code is below:
<h3>Corporate Member</h3>
<p>
</p>
<p><input type="hidden" value="Corporate" name="MemberType" id="MemberType"></p>
<p>Name<br><input size="80" name="Name" id="Name"></p>
<p>Contact Name<br><input size="80" name="ContactName" id="ContactName"></p>
<p>Contact Position<br><input size="80" value="Broker" name="ContactPosition" id="ContactPosition"></p>
<p>Web Site<br><input size="80" value="http://www.crepso.com" name="WebSite" id="WebSite"></p>
<p>EMail<br><input size="80" name="EMail" id="EMail"></p>
<p>Phone<br><input size="80" name="Phone" id="Phone"></p>
<p>Fax<br><input size="80" name="Fax" id="Fax"></p>
<p>Logo URL<br><input size="80" name="LogoURL" id="LogoURL"></p>
<p>Description<br><textarea name="Description" value="" rows="4" cols="80" id="Description"></textarea></p>
<p><br><br><input type="submit" value="Submit" name="submit"></p>
Hi broberts,
Try putting the type="text" attribute in the text input tags. Everything else looks OK to me.
Bob
Try putting the type="text" attribute in the text input tags. Everything else looks OK to me.
Bob
I tried adding type="text" as suggested, made no difference.
The problem does seem definitely related to the tag </textarea>. < /textarea> works as far as saving is concerned. As does </ textarea>. </textarea > does not work.
The problem does seem definitely related to the tag </textarea>. < /textarea> works as far as saving is concerned. As does </ textarea>. </textarea > does not work.
Hi broberts,
I take your code and add it to the Form HTML box and save and its fine, I use FireFox 3.0, did you try with naother browser ?
I take your code and add it to the Form HTML box and save and its fine, I use FireFox 3.0, did you try with naother browser ?
I've tried it in Firefox 3 and IE 7. Same problem in both.
The form has a redirect url to a ChronoConnect page "index.php?option=com_chronoconnectivity&Itemid=28" and I've edited the AutoGenerate, below. Other than that it's all defaults.
The form has a redirect url to a ChronoConnect page "index.php?option=com_chronoconnectivity&Itemid=28" and I've edited the AutoGenerate, below. Other than that it's all defaults.
<?php
$database =& JFactory::getDBO();
$database->setQuery( "INSERT INTO jos_crepso_members VALUES (
'' ,
'".JRequest::getVar('MemberType', '', 'post', 'string', '')."',
'".JRequest::getVar('Name','', 'post', 'string', '' )."' ,
'".JRequest::getVar('ContactName','', 'post', 'string', '' )."' ,
'".JRequest::getVar('ContactPosition','', 'post', 'string', '' )."' ,
'".JRequest::getVar('WebSite','', 'post', 'string', '' )."' ,
'".JRequest::getVar('EMail','', 'post', 'string', '' )."' ,
'".JRequest::getVar('Phone','', 'post', 'string', '' )."' ,
'".JRequest::getVar('Fax','', 'post', 'string', '' )."' ,
'".JRequest::getVar('LogoURL','', 'post', 'string', '' )."' ,
'".JRequest::getVar('Description','', 'post', 'string', '' )."'); );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1);
</script>
";
}
?>
well, which Chronoforms version is this ?
No, please upgrade to BETA 2, backup your form, uninstall BETA 1 then install BETA 2 then rstore your form, then open your form and save it again, you will need to reconnect to table!
Well that solved the </textarea> save problem. When I try to view the form now I'm getting
Fatal error: Call to a member function setQuery() on a non-object in C:\...\Documents\XAMPP\htdocs\Joomla15\modules\mod_cblogin\mod_cblogin.php on line 147
well, seems nothing with Chronoforms this time, but just curious, are you connected to any tables ? if yes, what are they ?
All the forms are generating this message.
The form we've been discussing is attached to a table I created jos_crepso_members. BTW really like the new DB Connection tab. This table did not originally have recordtime, ipaddress, or uid fields. After the first failure and in looking at the AutoGenerate code I added the fields to the table. (My Joomla! & PHP knowledge is almost non-existent so I had no idea if this was necessary.)
I've also tried creating new forms. One uses the same form definition and table. The other is absolutely basic it simply has
The form we've been discussing is attached to a table I created jos_crepso_members. BTW really like the new DB Connection tab. This table did not originally have recordtime, ipaddress, or uid fields. After the first failure and in looking at the AutoGenerate code I added the fields to the table. (My Joomla! & PHP knowledge is almost non-existent so I had no idea if this was necessary.)
I've also tried creating new forms. One uses the same form definition and table. The other is absolutely basic it simply has
<input type="text" name="Comment" width="100">
hi broberts,
Lets concentrate on your main form, disable the DB connection and don't connect to any tables then reopen the form page, do you still get the same error ?
Lets concentrate on your main form, disable the DB connection and don't connect to any tables then reopen the form page, do you still get the same error ?
DB Connection enabled or disabled makes no difference to the message.
Since the message indicated a problem in community builder (cb) code I uninstalled this legacy system and the problem disappears. CB was handling user authentication among other things.
edit: it appears that the cb stuff was causing problems with other chrono problems I was having. I had yet to ask about the fact that I couldn't get the form to actually save anything in the db. Once I uninstalled cb the problem vanished.
Since the message indicated a problem in community builder (cb) code I uninstalled this legacy system and the problem disappears. CB was handling user authentication among other things.
edit: it appears that the cb stuff was causing problems with other chrono problems I was having. I had yet to ask about the fact that I couldn't get the form to actually save anything in the db. Once I uninstalled cb the problem vanished.
This topic is locked and no more replies can be posted.