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
Hi,
I have a Property in one of my templates with an alias of specialityList.
I know I can write the value out using: <xsl:value-of select="specialityList"/>
However, is there a way to assign the value to a vairable?
Thank you,
I have just found the answer I was looking for:
<xsl:variable name="selectedValues" select="$currentPage/specialityList"/><xsl:if test="contains($selectedValues, 'AHP')"> do something </xsl:if>
Thanks to this post: http://our.umbraco.org/forum/developers/xslt/21135-IF-CheckBoxList-Contains
Thanks,
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Beginner Question: How to assign a Vairable from a Field in a template
Hi,
I have a Property in one of my templates with an alias of specialityList.
I know I can write the value out using: <xsl:value-of select="specialityList"/>
However, is there a way to assign the value to a vairable?
Thank you,
Hi,
I have just found the answer I was looking for:
<xsl:variable name="selectedValues" select="$currentPage/specialityList"/>
<xsl:if test="contains($selectedValues, 'AHP')"> do something </xsl:if>
Thanks to this post: http://our.umbraco.org/forum/developers/xslt/21135-IF-CheckBoxList-Contains
Thanks,
is working on a reply...