Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        johnson hsu created issue -
        Gabriele Columbro made changes -
        Field Original Value New Value
        Attachment forms-field-styling.diff [ 12342167 ]
        Jörg Heinicke made changes -
        Assignee Jörg Heinicke [ joerg.heinicke@gmx.de ]
        Jörg Heinicke made changes -
        Fix Version/s 2.1.10-dev (current SVN) [ 12310931 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.2-dev (Current SVN) [ 12310611 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Jörg Heinicke
            Reporter:
            johnson hsu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development