Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1900

BUG in forms-field-styling.xsl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.10, 2.2
    • Blocks: Forms
    • None
    • Normal

    Description

      <xsl:template match="fi:booleanfield[@state='output' or
      fi:styling/@type='output']" priority="3">
      <input id="{@id}" type="checkbox" title="{fi:hint}" disabled="disabled"
      value="{@true-value}">
      <xsl:if test="fi:value != 'false'">
      <xsl:attribute name="checked">checked</xsl:attribute>
      </xsl:if>
      </input>
      </xsl:template>

      must add a name attribute.

      <xsl:template match="fi:booleanfield[@state='output' or
      fi:styling/@type='output']" priority="3">
      <input id="{@id}" type="checkbox" title="{fi:hint}" disabled="disabled"
      value="{@true-value}" name="{@id}">
      <xsl:if test="fi:value != 'false'">
      <xsl:attribute name="checked">checked</xsl:attribute>
      </xsl:if>
      </input>
      </xsl:template>

      Without the name attribute, It's not convenient to find the value of checkbox by script.

      Attachments

        1. forms-field-styling.diff
          1 kB
          Gabriele Columbro

        Activity

          People

            joerg.heinicke@gmx.de Jörg Heinicke
            johnson324 johnson hsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: