Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.10, 2.2
    • Component/s: Blocks: Forms
    • Labels:
      None
    • Urgency:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: