3 users online. Create an account or sign in to join them.Users

Search

Greetings, All

I have a simple 'Request Call-back' form at http://www.jani.com.mt/contact/ that is a 'copied-and-pasted' version of the message form featured on the 'About' page that comes with Symphony, with just the label text changed here and there, no amendments to the original code though.

The form fetches the data just fine, but upon submission it just reloads instead of outputting a 'success' or 'error' message. My CSS contains all classes related to the form, so [p class="{@result}"] should work just fine, I guess. What could be a possible reason for the confirmation message not showing up?

Any suggestion would be most helpful and very much appreciated - thank you in advance.

Cheers, Piotr

what does your debug say after submitting? You can append ?debug to the form action and it will redirect to the debug and show you the event details.

If the data is submitting to the backend then it sounds like the xpath you have specified for the success message could be wrong.

Quick question which'll save me making a new thread.

Is it possible to create a more simple contact form that only sends email (does not store data)?

Is it possible to create a more simple contact form that only sends email (does not store data)?

I'm sure this is possible, but Symphony's standard behaviour is to create an entry in a section and to send an email which points the recipient to that entry. Although this may seem like overkill, it creates a very useful record of enquiries which my clients love.

The process is so easy to create, that you might as well store the data for redundancy.

@jdshackleton, if your email gateway will go down for some time, you may lose valuable data. so it's always better to store.

@wyza3, the way how it works - event outputs success/error messages to XML structure, at path of "/data/events/event-name". there is a useful option in config.php :

'display_event_xml_in_source' => 'yes'

so, you need to process this node to show the result in outputting HTML. as i can see, contact form shipped with default ensemble doesn't do it.

in the most simple case, xslt snippet may look like this:

<xsl:choose>
    <xsl:when test="/data/events/event-name/@result = 'success'">
        <h6>Message was sent.</h6>
    </xsl:when>
    <xsl:otherwise>
        <h6 class='error'>There is some problems, please check your input.</h6>
    </xsl:otherwise>
</xsl:choose>

but i recommend to take a look at nickdunn's form controls xslt utility, it's robust and flexible.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details