I have tried this in both IE 9 and Firefox 5 and either I am making this more difficult than it needs to be, or it just is not working.
I am using Chronoforms_J1.5_V4_RC1.9 and here is what I have done.
Using Joomla 1.5.23 I click on Components and ChronoForm.
Under Forms Manger I click on NEW.
I enter a FORM NAME
I click on Save and/or Apply and nothing happens.
I go back to the list and the few form I created is not listed.
I click on Code and nothing comes up
I click on Form Wizard and I try to drag and drop items over to the Preview screen on the right, nothing happens.
I click on Easy Form Wizard and again, nothing happens.
What am I doing wrong?
I think this is why I have been so confused. I have yet to get the form wizard to work nor was I able to insert a pre-defined HTML code. PLEASE HELP ME!!!
Thanks,
Kim
Hi Kim,
It sounds as though the MooTools Upgrade plug-in is not enabled on your site. This is a standard Joomla! plug-in installed by Joomla! and managed through Extensions | Plug-in Manager.
CFV4 requires the plug-in enabled to load the MooTools 1.2.5 library in place of the default MooTools 1.1.12 library.
Bob
Thank you so much.. . that did it!!!
I feel a little crazy, but I'm having the exact same issue and MooTools is enabled. Is there something else I could be doing wrong?
tkbonton,
I know what you mean, I was pulling my hair out trying to figure out what I was doing wrong. For me, I turned on MooTools and logged off and logged in and it worked.
What version of ChronoForms are you using? What version of Joomla are you using? Have you logged off and logged back on?
Sorry I cant be more help. They have had to help me with a lot.
When you get it working, please post the fix. You might want to try uninstalling and reinstalling too. Just a thought.
Hi tkbonton,
Check the page source to see which MooTools file is actually being loaded. I've seen a couple of sites now where the plug-in was enabled but the old MooTools 1.1.12 was still being loaded. Unfortunately I haven't found an explanation or a reliable fix :-(
Bob
Thank you both for responding, all it took was me logging out and back in again and it works!! Now on to the other boards, so I can figure out what I'm doing.🙂
Hi tkbonton ,
Good news, thank you. I guess that in practice logging out must clear the browser cache somehow.
Bob
Is the mootools plugin upgrade something that is needed with joomla 1.7? I can't find where it's installed so I can't enable it. I'm having problems with my CF4 forms not doing anything with the php commands that have been entered.
I am using ChronoForms on 1.7 and I just checked my modules and plugins and I do not see MooTools anywhere and my version is working.
What is happening when you try to use it?
Hi ravens,
You’re OK. The plug-in is only in Joomla! 1.5.19+ It was to allow a transition from the MooTools 1.1.12 library used in Joomla! 1.5 to the MooTools 1.3 library used in Joomla! 1/6/1.7
Bob
Any php coding I put in a form gets ignored. Nothing happens.
Hi ravens,
If you post a specific question then we may be able to help. You can put PHP (in <?php . . ?> tags) in may places in ChronoForms.
Bob
I did post a specific question. I asked if the mootools plugin was something that needed to be installed with Joomla 1.7 because I've copied PHP code from my Chronoforms version 3 forms and pasted it into my Chronoforms version 4 forms and it doesn't work. One thing I'm trying to do is if the person attaches a file to the form, after the form is emailed with the attachment, have the file deleted from the server.
Tami
@Tami,
1- Mootools is already included in J1.6/7
2- Mootools has nothing to do with PHP, if your PHP code doesn't run then you have some error or you didn't place it correctly.
3- If you want to delete the file from the server after attaching it then you will need some piece of PHP code in a custom code action to run AFTER the email action, I think that you can find this code easily on google, you can find the uploaded files paths in the $form->files array
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Tami,
I can't see exactly why this is breaking but there are a couple of things that will help.
First as a general comment; in CFv4 you are better off separating the code out from the Thank You Message action. Drag over a Custom Code action as well and put the code into that. It's tidier and less likely to get problems like this.
Second, the PHP code you have there won't work in CFv4 - probably a PHP Error is being generated and this is breaking the display. I'm not sure what the equivalent is but the file data is saved in the $form->files and/or the $form->data arrays.
I'll run a test later and see if I can work out what is needed.
Bob
Ok, I took the code out of the thanks message and added your code into a custom code event after the thanks message. Now I get the message "Warning: Invalid argument supplied for foreach() in E:\www\www.ravenbands.org\administrator\components\com_chronoforms\form_actions\custom_code\custom_code.php(17) : eval()'d code on line 4" and the file is not deleted.
If I put your code into the bottom of the thanks message code (and take out the custom code event), I get the message "data['_PLUGINS_']['upload_files']; foreach ( $files as $f ) { JFile::delete($f['path']); } ?>"
I have not edited the custom_code.php file so I don't know why I'm getting an error. Thanks for your help.
Tami
P.S. - Granted I know very little about PHP, but it looks to me like line 17 of the custom_code.php file adds the needed '?>' to the end of the generated code, but doesn't add the '<?php' to the beginning. Don't know if this helps or not.
Tami
Hi Tami,
The custom code action with the deletion code should be the LAST thing in the "on submit" event box and you should have at least 1 "upload files" action before it (Enabled and configured), is this true in your case ?
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
The order of the events in the on submit event are
Upload files
Email #1
Show thanks
Custom code (to delete the file)
that's it
The file is getting uploaded, as I can FTP in and see it and it is getting attached to the email.
Tami
Hi Tami,
Ok, Please edit Bob's code to look like this:
<?php
print_r2($form->data);
$files = $form->data['_PLUGINS_']['upload_files'];
if ( count($files) ) {
jimport('joomla.filesystem.file');
foreach ( $files as $f ) {
JFile::delete($f['path']);
}
}
?>
And show us the output you get once you submit your form.
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This seems to have taken us backwards. The thanks page now shows:
--------------------------------
Array
(
[stuName] => xxxx
[reqName] => xxxx
[email] => xxxx
[address] => xxxx
[city] => xxx
[state] => KS
[zip] => xxxx
[amount] => 50
[expense] => reeds
[radio0] => attached
[input_submit_17] => Submit
[a49a2eb6afd354c51fcb928adc102ef0] => 1
[option] => com_chronoforms
[chronoform] => test-Copy
[event] => submit
[Itemid] =>
[receiptname] => 20110830223113_2008 camps.xls
[_PLUGINS_] => 20110830223113_2008 camps.xls,E:\www\www.ravenbands.org\components\com_chronoforms\uploads\test-Copy\20110830223113_2008 camps.xls,15360,http://www.ravenbands.org/components/com_chronoforms/uploads/test-Copy/20110830223113_2008 camps.xls
)
Warning: Invalid argument supplied for foreach() in E:\www\www.ravenbands.org\administrator\components\com_chronoforms\form_actions\custom_code\custom_code.php(17) : eval()'d code on line 6
Tami Dolan, your request for reimbursement from Tami Dolan's account for $50 has been sent to our treasurer, Tami Dolan. She will get back to you as soon as possible.
You will receive a copy of your request.
Thanks
ONW Band Boosters
Powered By ChronoForms - ChronoEngine.com
--------------------------------
I'm not sure what happened here.
Tami
Hi Tami,
Something is wrong here, either you didn't paste the output correctly or there is something wrong.
If you are sure that this is exactly the data shown on your screen, then please upgrade to the latest V4 version published today, download and install it OVER the one you already have, do NOT uninstall, just install it over it and files will get updated.
Once you do that please submit your form again and show me a screenshot for the same output.
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I installed the new version released today. I copied the code from the 8/31 email and pasted it into a custom code event, which is after the show thanks message. The end result is still the same (I've x'd out private info.).
--------------------------------
Array
(
[stuName] => xxxx
[reqName] => xxxx
[email] => xxxx
[address] => xxxx
[city] => xxxx
[state] => xxxx
[zip] => xxxx
[amount] => 100
[expense] => reeds
[radio0] => attached
[receiptname] => 20110831183725_buddy with sunglasses.jpg
[input_submit_17] => Submit
[d0ce310e8ce5a49df737d42165995339] => 1
[option] => com_chronoforms
[chronoform] => test-Copy
[event] => submit
[Itemid] =>
[_PLUGINS_] => 20110831183725_buddy with sunglasses.jpg,E:\www\www.ravenbands.org\components\com_chronoforms\uploads\test-Copy\20110831183725_buddy with sunglasses.jpg,98374,http://www.ravenbands.org/components/com_chronoforms/uploads/test-Copy/20110831183725_buddy with sunglasses.jpg
)
Warning: Invalid argument supplied for foreach() in E:\www\www.ravenbands.org\administrator\components\com_chronoforms\form_actions\custom_code\custom_code.php(18) : eval()'d code on line 6
Tami Dolan, your request for reimbursement from Tami Dolan's account for $100 has been sent to our treasurer, Tami Dolan. She will get back to you as soon as possible.
You will receive a copy of your request.
Thanks
ONW Band Boosters
Powered By ChronoForms - ChronoEngine.com
-----------------------
Tami
Hi Ravens,
Looking at that listing I think that you have a Handle Arrays action that is altering the way the file data is stored :-(
If you have, please remove it temporarily and see if the error messages go (you may get others instead).
I'm not sure what the fix is for that but it would at least identify the problem.
Bob
I deleted the handle array & db save events. Still the same result. I've attached a backup of the form to see if that helps figure out the problem. This was such a simple form in v3. I don't understand why I'm having so much trouble in v4 with it.
Hi Tami,
Well found. I didn't' know that.
Bob