Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
is there any easy way to find out if a checkbox list contains a value? rather than looping over the selected values on the datatype do more of something like?
<xsl:variable name="selectedValues" select="$currentPage/myList"/>
<xsl:if test="$selectedValues contains 'moo'">do something</xsl:if>
Hi Tom,
You've probably already figured this out... but you were so close anyway! There is an XPath function called "contains":
<xsl:if test="contains($selectedValues, 'moo')"> do something </xsl:if>
Cheers, Lee.
Hi Lee,
Thanks for the reply! yes I ended up working that out finally! haha
between trying to get on top of razor and still supporting xslt it has been busy!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
IF CheckBoxList Contains?
is there any easy way to find out if a checkbox list contains a value? rather than looping over the selected values on the datatype do more of something like?
Hi Tom,
You've probably already figured this out... but you were so close anyway! There is an XPath function called "contains":
Cheers, Lee.
Hi Lee,
Thanks for the reply! yes I ended up working that out finally! haha
between trying to get on top of razor and still supporting xslt it has been busy!
is working on a reply...