Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Alcock 113 posts 176 karma points
    Mar 30, 2012 @ 15:03
    Peter Alcock
    0

    Multiple Forms on one page

    Hi all,

    Looking for some help from you awesome bunch. Im using the Pliable forms on my site which work perfectly for what i want however I want to use more than one form on a page, both forms display fine however only the first form actually works (no action on submit on the others).

    Any ideas? ive posted my xslt for my tabbed block 'widget' hopefully to give an insight into what im doing.

    Thanks

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
      version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:ipro="urn:ipro" xmlns:ucomponents.media="urn:ucomponents.media" xmlns:ucomponents.strings="urn:ucomponents.strings"
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ipro ucomponents.media ucomponents.strings ">

    <xsl:output method="xml" omit-xml-declaration="yes"/>
    <xsl:variable name="documentTypeAlias" select="string('TabBlock')"/>  
    <xsl:variable name="form" select="embedCode"/>  
    <xsl:include href="../Formbasic.xslt"/>  
       
    <!-- <xsl:param name="currentPage"/>-->

    <xsl:template match="/">
      <div class="tab-area" style="width:680px;">
      <ul class="tabset">
      <xsl:for-each select="$currentPage/* [name() = $documentTypeAlias] ">
         
        <xsl:choose>
        <xsl:when test="position() = 1">
          <li><a href="#{@id}" name="{@id}" class="tab active"><xsl:value-of select="@nodeName"/></a></li>
       </xsl:when>
          <xsl:otherwise>
             <li><a href="#{@id}" name="{@id}" class="tab"><xsl:value-of select="@nodeName"/></a></li>
          </xsl:otherwise>
        </xsl:choose>
        
        </xsl:for-each>
    </ul>
    <xsl:for-each select="$currentPage/* [name() = $documentTypeAlias] ">  
      <div class="tab-content" style="width:610px; border:1px solid #333;" id="{@id}">
           
           <h2><xsl:value-of select="title"/></h2>
          <xsl:value-of select="bodyText" disable-output-escaping="yes"/>
          <xsl:value-of select="readMore" disable-output-escaping="yes"/>

       <div>
      <xsl:choose>
        <xsl:when test="number(embedCode) &gt; 0">
          <xsl:call-template name="renderForm">
            <xsl:with-param name="formPage" select="umbraco.library:GetXmlNodeById(embedCode)" />
          </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
          <xsl:call-template name="renderForm">
            <xsl:with-param name="formPage" select="$currentPage" />
          </xsl:call-template>
        </xsl:otherwise>
      </xsl:choose>
      </div>
     
      </div>
        </xsl:for-each>
        
        </div>
    </xsl:template>
    </xsl:stylesheet>

  • Paulo Freitas 1 post 21 karma points
    Jun 17, 2013 @ 14:12
    Paulo Freitas
    0

    Hi Peter, I have the same problem. Was wondering if you had solved this problem??

Please Sign in or register to post replies

Write your reply to:

Draft