There is no form with this name...

tokenring 25 Apr, 2009
What is a likely cause of seeing this error under the following situation.

The form is published
it is accessible from the public website by all users
the users fill out the form and submit

but this is returned in the UI

There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management
tokenring 25 Apr, 2009
Interesting... it only happens in Chrome
GreyHead 26 Apr, 2009
Hi tokenring,

Is the correct form name in the URL? This error should only be triggered if ChronoForms can't find the form info in the database - or if it is found but is not published.

Bob
tokenring 28 Apr, 2009
I see what you are saying, but how can the name in the URL be wrong, if the users clicks the form link from the site and is at the form. The error is displayed after they fill out all information and click "Submit"

:)
GreyHead 28 Apr, 2009
Hi tokenring,

I don't know what's happening - I was interested to know what the url is when you see the error message.

Bob
Max_admin 30 Apr, 2009
Hi Aaron, Bob,

I think the problem is related to some issue we fixed today in the coming release, please wait for the new release (its about to come out) and upgrade and retry!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
toastguy 09 Jun, 2009
I'm getting the same thing happening. Here's what I've done:

1. Published my form using the Wizard (emails enabled)
2. Successfully hooked up form name "join-guild" to Menu Item.
3. I navigated to form on frontend, filled in information, no problem😀
4. Submit and I received this error:

"There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management"

What's going on?
tokenring 09 Jun, 2009
what version are you using?

AB
GreyHead 10 Jun, 2009
Hi toastguy,

The dash in the form name might be the problem, - please try renaming the form to join_guild or joinguild. I suspect that if you look at the database the table may not have been created. MySQL doesn't like names with hyphens unless they are correctly quoted `jos_chronoforms_join-guild` and ChronoForms doesn't always add the quotes.

Bob
artful 29 Sep, 2009
Thanks Bob
Ah yes it was the dash! We had this error message as well. As soon as we renamed the forms with no dashes it works Thanks Bob you are the best thing about Chronoforms! I have searched about 7 posts to find the answer so I'll go and add a link to this one to the others.

Other simple useful things to try (for anyone else struggling with this) is to upgrade SQL and install the demo form. There's a simple link to do this from within Chrono Forms. Then at least you have a basic form that works and its much easier to trouble shoot if you have a working form.

Thanks Again
Nick
GreyHead 29 Sep, 2009
Hi Nick,

Thanks for that.

Bob
lennart 19 Jan, 2012
Same issue here: "There is no form with this name..."

But dash is not the problem.
I have multiple forms on my website and now, all of a sudden, no one is working anymore.
When i go to setup emails, in all forms, it's in red.

I have fields like: to, subject, fromname and fromemail, all enabled.

I applied some security to this website. Might that be the problem???
How can I check?
GreyHead 19 Jan, 2012
Hi lennart,

If you made a change to your site and all the forms are now broken then undo the security change and see if that fixes the problem. If it does then you have to debug the security fix.

What kind of security fix was it?

Bob
lennart 20 Jan, 2012
I have no clue... what did I do, or not perhaps.
Some strange behaviour: when i try to add for example Dynamic Subject to the red box, I can drop/put it anywhere on the page. I can hang them even outside the red box.
There is no form with this name... image 1
Can you see them: 3 of them!
GreyHead 20 Jan, 2012
Hi lennart,

You may have the MooTools Upgrade Plugin enabled. This is an optional plug-in that enables the MooTools 1.2 library on your site.

ChronoForms v3 (and many other Joomla! extensions) use the MooTools 1.1.2 library that is installed by default. The ChronoForms Wizard, and other back-end code will not run with the plugin enabled.

If you disable the plug-in then ChronoForms v3 should run correctly.

Note ChronoForms v4 requires MooTools 1.2 and need the plug-in enabled.

Bob
lennart 20 Jan, 2012
Yep, right, disabled plugin "System - Mootools Upgrade".
Now my forms work again!

Thanks a lot Greyhead!
tokenring 23 Jan, 2012
Just saw this. Glad it worked out! :-)
jmarian1 08 Feb, 2012
What about in v4 RC3.11? Is there any solution? The form is published, no dashes use but underscore is used. It gives an error "

There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management.

". This happen when I use the double drop down list. I read about the mootools again here and I don't see the Mootools in the plugin manager so I can't enable it. I manually install the 1.7.4 full package in my server and I checked if mootools file is in the media/system/js and it is there compressed and uncompressed. So basically, it is installed in the system but just can't see it in the joomla admin plugin manager. Not really sure what is the problem why I am getting the error. Please help. Thanks.

I guess to make it clear, I wanted to show the districts with table="district" and fieldnames="DistrictCode, DistrictName". Then my second dropdown is to get the school based on the district selection. My school tablename="school" and fieldnames="SchoolCode(PK),SchoolName,DistrictCode(FK)". I followed the tutorial and somehow the error message appear. PLease help. Thanks.

First of all, here is my html code:

<div class="form_item">
    <div class="ccms_form_element cfdiv_custom" id="district_container_div">
<label for="district">District Name:</label>
<?php
$db =& JFactory::getDBO();
$query = "
SELECT DISTINCT `DistrictCode`, `DistrictName`
FROM `#__district`
ORDER BY `DistrictName`;
";
$db->setQuery($query);
$data = $db->loadObjectList();
?>
<select size="1" class="" title="" type="select" name="district" id="district">
<option value="">Select District</option>
<?php
foreach($data as $d) {
echo " <option value='".$d->DistrictCode."'>".$d->DistrictName."</option>";
}
?>
</select>
<div class="clear"></div>
<div id="error-message-school"></div>
</div>
   <div class="ccms_form_element cfdiv_custom" id="school_container_div">
<label for="school">School Name:</label>
<span id="ajax_getschool">Please choose District</span> 
<span id="progress_getschool" style="visibility: hidden;">Searching...</span>
<div class="clear"></div>
<div id="error-message-school"></div>
</div>

here is my js code:
window.addEvent('domready', function() {
$('district').addEvent('change', function () {
// edit these two lines to match your form
var message = "Please select a District";
var a = $('district').value;
if ( a != null && a != '' ) {
getSchool(a);
} else {
$('ajax_getschool').setHTML("<span id='ajax_getschool' >"+message+"</span>")
}
}) ;
});


function getSchool(a){
var form_name = "principal_form";
var url =
"index.php?option=com_chronoforms&chronoform="+principal_form+"&event=ajax&format=raw";
new Request.HTML({
url: url,
method: 'post',
onRequest: function(){
$('progress_getschool').setStyle('visibility', 'visible');
},
onComplete: function(){
$('progress_getschool').setStyle('visibility', 'hidden');
},
update: $('ajax_getschool'),
data: { 'sid': a }
}).send();
};


here is my ajax code
<?php
$district =& JRequest::getString('sid', '', 'get');
if ( $district ) {
$db =& JFactory::getDBO();
$query = "
SELECT DISTINCT `SchoolName` AS `id`,`SchoolName`
FROM `#__school`
WHERE `DistrictCode` = '$district'
ORDER BY `SchoolName`;
";
$db->setQuery($query);
$data = $db->loadObjectList();
if ( count($data) ) {
$m = new stdClass();
$m->id = 0;
$m->SchoolName = 'Select School';
$data = array_merge(array($m), $data);
$return = JHTML::_('select.genericlist', $data, 'SchoolName',
'class="inputbox required select" size="1" ', 'id', 'SchoolName', 0);
} else {
$return = "Sorry, we couldn't find that District";
}
} else {
$return = "Sorry, we couldn't find a district id";
}
echo $return;
?>

$mainframe =& JFactory::getApplication(); $mainframe->close();

GreyHead 08 Feb, 2012
Hi Jmarian1,

When exactly do you get the error?

Do you have a form called principal_form?

Bob
jmarian1 09 Feb, 2012
Hi Bob,

Yes, I have a form name called "principal_form" and I get the error in the webpage when I select the School from the drop down select and it search but afterwards it gives the error "There is no form........". Attached is the error message I received in the form. Thanks and hope to hear from you soon.[attachment=0]error.jpg[/attachment]
GreyHead 09 Feb, 2012
Hi jmarian1,

I'd use FireBug to check what data is being passed back and forth when you trigger the Ajax. And double check the spelling and capitalisation of the form name e.g is is Principal_form ???

Bob
jmarian1 09 Feb, 2012
Hi Bob. Hope you will have time to check my email. I include the URL. Hope you can help me. Thanks.
GreyHead 10 Feb, 2012
Hi jmarian1,

For other readers: The URL is wrong, this snippet
var form_name = "principal_form";
var url =
"index.php?option=com_chronoforms&chronoform="+principal_form+"&event=ajax&format=raw";
has +principal_form+ instead of +form_name+. It should be
var form_name = "principal_form";
var url =
"index.php?option=com_chronoforms&chronoform="+form_name+"&event=ajax&format=raw";
or
var url =
"index.php?option=com_chronoforms&chronoform=principal_form&event=ajax&format=raw";


Also there is a bug in my code and this line in the Ajax code
<?php
$district =& JRequest::getString('sid', '', 'get');
needs to be
<?php
$district =& JRequest::getString('sid', '', 'post');

Bob
This topic is locked and no more replies can be posted.