Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Freeform and CSM
Status | Resolved |
Add-on / Version | Custom System Messages 2.5 |
Severity | Critical |
EE Version | 2.7.0 |
Neo Mudaly
Nov 04, 2013I have a simple Freeform form that directs to this CSM template:
{if csm:error == TRUE }
<h2>The following errors were encountered:</h2><p> <br /></p><ul class="error-fields">
{csm:content}
</ul>
<p>{if:else}<br />
{if csm:action == 29}<br />
</p><h2>Thank you. We'll be in touch shortly</h2>
<p> {/if}<br />
{/if}
Why can I not get the “Thank You” message on successful submission?
I get the errors fine, and the correct template is displayed but nothing if ACT=29.
Brian Litzinger
Did you verify that {csm:action} has a value of 29?
Also, why not try {if:elseif csm:action == 29}
Neo Mudaly
Hi Brian, thanks for the quick reply.
When I successful submit the form I don’t get a value for {csm:action} returned to the message template. The value is 29 when submitted in error.
BoldMinded (Brian)
Do any of the {csm:x} variables work on the success page?
Neo Mudaly
Sorry for the delay - it doesn’t look like any of the {csm:x} variables will render to the page.
BoldMinded (Brian)
Freeform is probably doing a page refresh, which means the $_POST array is empty and CSM doesn’t know how long to hold onto the data, thus is clearing the values.
BoldMinded (Brian)
Indeed, its doing redirects. Also, it looks like Freeform supports its own inline error messaging now… any reason you’re using CSM to display the messages and not Freeform?
Neo Mudaly
Yes it looks like the redirect throws the spanner in the works. I’m using Freeform now to redirect to the desired message template. I actually wanted to use one point of reference for all my System Messages but I see now that it may very well be a bit of a fool’s errand. Regardless, thanks for your help as well as the cool plugin ^^