-
- 199 Posts
Resolved. How? I don’t know. I removed the Container suffix in the System settings for FURLs and that seemed to do the trick.
not sure why though as the javascript "hiding" code that I threw up there in place of SPForm worked fine.
MySQL: 5.0.45
PHP: 5.2.6
Linux 2.6.9-023stab048.6-enterprise #1
cURL enabled
PDO enabled
FFox Apple 3.6.8
Firebug DIS-abled
-
- 24,544 Posts
Quote from: Peter at Aug 08, 2011, 11:39 PM
Resolved. How? I don’t know. I removed the Container suffix in the System settings for FURLs and that seemed to do the trick.
not sure why though as the javascript "hiding" code that I threw up there in place of SPForm worked fine.
Glad you got it sorted. I was just thinking that it sounded like a FURL problem of some kind (and the Contact form is a container). I’m not sure if there’s anything I could do with SPForm to prevent the problem.
-
- 202 Posts
I have a slew of Revo 2.2 and AJAX issues to wade through.
One of them is "how do I AJAX-ify the SPFResponse" ? Right now, it's an integer in the default property set.
Right now, my best option seems to be to edit spformTpl and replace the id with spfresponse, or find a way to trigger the response.
Why I want to do that: it's a single page website. 6 pages. I don't need the SPFResponse to do anything other than say something like "Your email was sent, we'll reply shortly."
Suggestions please!
In gratitude,
pb
-
- 24,544 Posts
I'm not clear on what you're trying to do. Can't you just alter the SPFResponse tpl to say what you want? If you don't want the "take me back" link, you can change the SPFResponse snippet tag to:
[[!SPFResponse? &takeMeBack=`0`]]
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/modx.html
-
- 202 Posts
The Form action is the ID# of SPFResponse. How can I get it to launch SPFResponse in a popup?
-
- 24,544 Posts
I'm not sure, the form has to have that action in order to process the $_POST and send the email, so you can't change it.
The info here might help:
http://p2p.wrox.com/asp-forms/14339-opening-pop-up-window-response-redirect.html
If not, I think you would have to modify the code of the spformprocclass.inc.php file around line 530 and have it create the popup rather than redirecting.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/modx.html
-
- 24,544 Posts
I'm not sure, the form has to post to itself in order to process the $_POST and send the email, so you can't change that.
The info here might help:
http://p2p.wrox.com/asp-forms/14339-opening-pop-up-window-response-redirect.html
If not, I think you would have to modify the code of the spformprocclass.inc.php file around line 530 and have it create the popup rather than redirecting.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/modx.html
-
- 24,544 Posts
Quote from: ultrasef at Feb 06, 2012, 08:50 PMThanks for the reply Bob. I figured that the snippet wouldn't fire properly. I'll look into editing it...
Oh, I have another idea: can a form have 2 actions?
No, it has to have one specific action.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/modx.html
-
- 270 Posts
Hi guys, I'd like to take the submitted form field values and place them into a small structured resource (xml) and attach this resource to the recipient email.
Would SPF be a good candidate for achieving something like that?
Thanks.
Modx version - MODX Revolution 2.2.0-pl2 (traditional)