Page title will break when using Composite.Forms.FormSubmitHandler

Topics: Troubleshooting
Sep 2, 2011 at 3:46 PM

Hi together,

I have encountered a weird problem after installing Composite.Forms.FormSubmitHandler and inserting it on a page: The function itself is working perfectly, e-mails are sent and everything seemed to be fine. But I have noticed that the page title in <html><head><title> is now empty for all pages containing a contact form. I have tried a lot, but finally I guess this might be a bug.

  • I have done everything exactly the same way as described on http://docs.composite.net/C1/Packages/Forms/Form-Submit-Handler.aspx
  • The page title will disappear as soon as you insert the Composite.Forms.FormSubmitHandler-function on a page, it does not matter if it is placed within a content placeholder, within a template or within another function.
  • I have downloaded a composite demo website (2.1.4113.99) and repeated the documented steps, but also the page title will break as soon as FormSubmitHandler is placed on a page.
  • It also doesn't matter if you are using Composite.Forms.FormSubmitHandler 1.1.2 or 1.1.3, both versions do the same.

Can somebody help me?

Thanks in advance and best regards from Spain!

Sep 4, 2011 at 7:05 PM

Hello,

Try out next workaround:

Go to Functions -> XSLT functions -> edit function Composite.Forms.FormSubmitHandler -> on the template tab locate row

<xsl:copy-of select="/in:inputs/in:result[@name='GetForm']/*" />
and replace it with next row:

<xsl:copy-of select="/in:inputs/in:result[@name='GetForm']/x:html/x:body/*" xmlns:x="http://www.w3.org/1999/xhtml" />

Sep 4, 2011 at 7:49 PM

It works! Thank you so much!!!