Posts: 2
Threads: 1
Joined: Feb 2012
Reputation:
0
My form works fine. I get the information in my account, however:
- After submitting form, the user is taken to the blank 'process.php' page and not the Thank You URL.
- I don't get an email notification.
Any ideas how to fix?
Thanks in advance,
Allen
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi Allen,
It's probably a syntax error in your email template. If there's anything even slightly out of whack, it'll throw an error and prevent redirecting to the Thankyou page. To confirm this, try temporarily disabling the email template then put through another submission.
If it's the email template, could you post the content here so we could look at it? (If it's not private info).
Thanks!
- Ben
Posts: 2
Threads: 1
Joined: Feb 2012
Reputation:
0
Yes, it was the email template. When I disabled it, the Thank You page shows up after submission.
Here's the content:
HTML:
<p>
There has been a submission made through your form, {$FORMNAME}:
</p>
<table cellpadding="0" cellspacing="1">
<tr>
<td style="font-weight: bold">ID</td>
<td>{$SUBMISSIONID}</td>
</tr>
<tr>
<td style="font-weight: bold">Name</td>
<td>{$ANSWER_Name}</td>
</tr>
<tr>
<td style="font-weight: bold">Email Address</td>
<td>{$ANSWER_Email_address}</td>
</tr>
<tr>
<td style="font-weight: bold">Budget </td>
<td>{$ANSWER_Budget_(up_to_$25_)}</td>
</tr>
<tr>
<td style="font-weight: bold">Service Your Are Requesting</td>
<td>{$ANSWER_Service_Your_Are_Requesting}</td>
</tr>
<tr>
<td style="font-weight: bold">Last modified</td>
<td>{$LASTMODIFIEDDATE}</td>
</tr>
<tr>
<td style="font-weight: bold">IP Address</td>
<td>{$IPADDRESS}</td>
</tr>
</table>
<p>
Submission made: {$SUBMISSIONDATE}
</p>
TEXT:
There has been a submission made through your form, {$FORMNAME}:
ID: {$SUBMISSIONID}
Name: {$ANSWER_Name}
Email Address: {$ANSWER_Email_address}
Budget : {$ANSWER_Budget_(up_to_$25_)}
Service Your Are Requesting: {$ANSWER_Service_Your_Are_Requesting}
Last modified: {$LASTMODIFIEDDATE}
IP Address: {$IPADDRESS}
Submission made: {$SUBMISSIONDATE}
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Feb 11th, 2012, 9:39 PM
(This post was last modified: Feb 11th, 2012, 9:39 PM by Ben.)
Ah! The problem is this placeholder: {$ANSWER_Budget_(up_to_$25_)}.
Placeholders are generated from the form field name attribute and can only contain the same permitted characters as valid name attributes. Name attributes are only permitted to have characters, numbers and underscore characters in order to be valid HTML. So what you'll need to do is update your form to remove the "(" and ")" and "$" from the field name. The label is fine: it's just the <input ... name="" /> bit that will need to change.
Once that's done, go to your Edit Form -> Fields tab and update the "field name" value to whatever you changed it to.
Lastly, re-edit your email template and change the placeholder name in both the HTML and text sections to this: {$ANSWER_zzzzzz} (where zzzzzz is the new field name).
Hope this helps! Let me know if I'm not clear on any of the steps.
- Ben