Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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.
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.