SharePoint 2010:自定义RadioText框未保存到字段

时间:2013-08-06 16:00:32

标签: html xslt sharepoint-2010

我在新表单中有一个广播文本框,我想将选择保存到SharePoint字段。我希望根据传入的参数显示/隐藏选项。

例如,如果参数类似于... aspx?Group = A

然后我只通过以下代码显示选项的某一部分:

<xsl:choose>

<xsl:when test="$Group = 'A' ">
<td> Choose from the right </td>
<td><span class="ms-RadioText" title="Choice 1"> <input id="..." type="checkbox" name="..."/><label for="...">Choice 1</label></span></td>
<td><span class="ms-RadioText" title="Choice 2"> <input id="..." type="checkbox" name="..."/><label for="...">Choice 2</label></span></td>

</xsl:when>

<xsl:when test="$Group = 'B' ">
<td> Choose from the right </td>
<td><span class="ms-RadioText" title="Choice 3"> <input id="..." type="checkbox" name="..."/><label for="...">Choice 3</label></span></td>
<td><span class="ms-RadioText" title="Choice 4"> <input id="..." type="checkbox" name="..."/><label for="...">Choice 4</label></span></td>

</xsl:when>

我成功地为正确的参数显示了框,但是当选中复选框并选择了项目时,选项不会保存到项目中。

如何选择映射到项目的选择字段?

0 个答案:

没有答案