-
- 160 Posts
A great tutorial. I am also having a problem with nothing except an error message when I submit the form.
This is the error message I get;
There were problems with your submission.
This may be through no fault of your own and is probably not immediately correctable.
Please come back and try again later.
I made sure that the correct page ids are in the spfconfig.cfg.php file;
$spformProcID = 24; // Doc ID of spformproc page
$spfResponseID = 32; // Doc ID of spfresponse page
These are the correct page ids.
I double checked the spelling of the snippet names, and I copied and pasted the snippet code from the turorial
The page titles are spell checked as well. I enabled "show in menu" for the thank you page (id32) and it comes up ok in the browser.
Any ideas where to look next?
Thanks
HalD
"Today’s headlines are nothing more than whispers of history"
-
- 160 Posts
Don’t know what changed or where but SPForm is working perfectly now.
Thanks for a neat snippet,
Hal
"Today’s headlines are nothing more than whispers of history"
-
- 24,544 Posts
Quote from: hald at Jul 19, 2008, 05:49 AM
Don’t know what changed or where but SPForm is working perfectly now.
Thanks for a neat snippet,
Hal
Maybe a cached version still around from before you got it all correct?
Glad it works now.
-
- 18 Posts
Is it possible to have multiple occurrences of SPForm on a website? For example a contact page for the Recruiter and a contact page for the Director? I understand how the drop-down menu works but I am looking for a solution that just defaults to one e-mail address on the form. I looked up eForm but the page says it has been deprecated.
Thank you,
Ian
-
- 24,544 Posts
Quote from: idoremus at Oct 27, 2008, 09:35 PM
Is it possible to have multiple occurrences of SPForm on a website? For example a contact page for the Recruiter and a contact page for the Director? I understand how the drop-down menu works but I am looking for a solution that just defaults to one e-mail address on the form. I looked up eForm but the page says it has been deprecated.
Thank you,
Ian
With the current version of SPForm, all the information is in the config file, I’m afraid, so every version would read the same config. The MODx Revolution version would handle this easily (if it was finished yet
).
Using the current version of SPForm, you could do it, but it’s a little awkward. You’d need to create a second version of of the SPForm and SPFormProc snippets for use on the second page, then create an extra config file for those snippets and change the following line in each snippet to include your new config file (which could be the same except for the recipient email and the id of the page with the spformproc snippet):
require_once $modx->config['base_path'].$spformPath."spfconfig2.cfg.php";
eForm might be a better choice, since SPForm was mainly designed to be quick and easy to install and use. I don’t think eForm has been deprecated (you might have been looking at a page for an older version). The current version is here:
http://modxcms.com/eForm-1003.html
-
- 13 Posts
Great tutorial, unfortunatly on submission i get this:
There were problems with your submission.
This may be through no fault of your own and is probably not immediately correctable.
Please come back and try again later
--------------------
and no email is delivered.
i use bluehost for hosting, do i need to configure something so my mail send works?
-
- 24,544 Posts
I use SPForm on Bluehost so it should be fine. The most likely cause is a mistake in the $formProcAllowedReferers array in the config file. It should look something like this (but with your actual domain name instead of "yoursite":
$formProcAllowedReferers = array(
'yoursite.com',
'www.yoursite.com'
);
-
- 2,877 Posts
This is awesome work thank you!!!
-
- 24,544 Posts
Quote from: mrhaw at Dec 23, 2008, 12:50 PM
This is awesome work thank you!!! :)
Thanks for the kind words. You should see the Revolution version.
It sets the allowed referers automatically on installation.