Thank You messages is displayed instead of the form.

MrCompTech 26 May, 2011
Joomla 1.6, Chronoform 4.0 RC1.8

This upgrade of Joomla 1.5 to Joomla 1.6 is still running from the 'jupgrade' folder, it has not been moved to the web root yet as I am still customizing the module settings and template options.

PHP sessions are stored in the MySQL database.

I created a form using the 'Easy Form Wizard' with no 'Captcha Input' on the form and disabled "Check Captcha" on the "Anti Spam" tab. The form is setup to save to a database table.

I linked the form to a menu item.

When I click on the menu item for the form, instead of the form being displayed the text of the "Thanks Message" tab is displayed.

Then I drag a 'Captcha Input' onto the form and enable "Check Captcha" on the "Anti Spam" tab. When the form is displayed it shows two error messages one above the form and one in the captcha area that says the verification code is not correct. This happens even before filling out or submitting the form.

When I fill in the form, enter the captcha and submit the form the "Thanks Message" is disaplyed but no data is stored in the datbase table and no email of the form submission is received.

URL of the form: http://mrcomptech.com/jupgrade/index.php/ask-a-technology-question

Any ideas as to what is wrong?
GreyHead 26 May, 2011
Hi MrCompTech ,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
MrCompTech 26 May, 2011
Hi Greyhead,

Thanks for your quick reply.

Attached is a backup of the form.

Other than Chronoform is there anything else that I should have installed, on Joomla 1.6, so that the captcha works correctly?

Have an awesome day!
GreyHead 27 May, 2011
Hi MrCompTech,

Neither the Email nor the Data Save were enabled or configured. When they are they work OK.

The Captcha also works OK as it is; I suspect that you may have included event=submit into the menu URL so the form is being submitted, causing an error and then being re-displayed. That would explain the error message when it loads.

Bob
MrCompTech 27 May, 2011
Hi GreyHead,

I found part of my problem. When switching from "Edit in Advanced Mode" to "Edit in Easy Mode" several items get 'reset', sort of that is. If I make no changes and just switch back to advanced mode the info I entered before is still there. If after having switched from 'Advanced' mode to 'Easy' mode and I change something, anything, and then click the "Save" button (Joomla 1.6 has 'Save' instead of 'Apply') then the items are wiped out.

These are the items that I have been working with:
Email: reset to disabled
Email: all fields on the 'Static' tab get blanked out
Show Thanks Message: gets blanked out.
Database Enabled: No
Selected Database: none

I don't know if this information is supposed to be preserved when switching from one mode to the other but it's not. If it's not supposed to be preserved then perhaps a warning message should be displayed indicating that information will be reset/blanked/deleted when switching modes.

So it would appear that one should only edit in either the 'Easy' or the 'Advanced' mode but not switch back and forth. When going back to 'Advanced' editing from 'Easy' editing a lot of extra stuff gets put into the events, load JS, load CSS, Load file upload, email2, email 3... It would seem this process is also what' deleting information already put on the form in 'Advanced' mode.

After I figured this out and took actions accordingly, I can receive emails of the data and the information is stored in the database.

I tried this with and without captcha/image verification with the same results.

On a side note: when on the records listing page I check a record then click the 'Delete' button but the record is not deleted, the account used to access the db does have 'all privileges'.

BUT I STILL HAVE ONE PROBLEM
After the form is submitted the 'Thank You Message' is displayed then when I go to a different page on my website then return to the form but I do not get the form I get the 'Thank You Message' displayed again, I get an email of the form and another row is added to the database of 'NULL' data.

UPDATE - PROBLEM SOLVED
I am using a Joomla 'top menu' (menu bar) with a menu item that displays the form. When adding the ChronoForm to the menu, under 'Basic Options' it asks for the 'Form Name' and the 'Event'. Hovering my mouse over the word 'Event' gives a tooltip that makes it sound as though the event needs to be set to 'submit', considering that's what you do with most forms. Since I couldn't find anything else causing the problem I left the Joomla 'top menu' (menu bar) field 'Event' blank for the ChronoForm and now the form displays correctly, after submitting the form I receive an email of the form, the data is inserted into the database and when I click the menu link for the form I get the form and not the 'Thank You Message'.

Have an amazing day!
Thanks
MrCompTech - Helping People with Technology
GreyHead 28 May, 2011
Hi Mr CompTech,

Thanks for this - very helpful. I'll post a link over to the Bugs list so that Max can check for the next version.

I think that the re-writing on switch back to Easy Edit is probably an unintended side-effect; the Easy mode was added later on for some users who found the changes in the admin interface from CFv3 confusing (quite reasonably IMHO).

The default 'event' is Load to display the form; as you found 'submit' goes directly to the form submission code. The menu item should probably default to Load. (You can also add custom events if you want to and link directly to them.)

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