This week I found a way to change the alignment of a Choice Field.
Nice to know if you have list of questions where somebody has to choose
between for example three answers.
You only have to make a custom New/Edit page in Sharepoint Designer
and add the next line
<xsl:comment>FieldName="Display Name"</xsl:comment>
just before the sharepoint Formfield definition <SharePoint:FormField …
Change the "Display Name" by the display name of your Sharepoint Field.
Add a Content Editor webpart to your page and
put the next Jquery script in this webpart.
<script>
$( document ).ready( function() {
// columnName = Field Display Name
// perRow = how many choices you want to see in one row.
$().SPServices.SPArrangeChoices({
columnName : "Display Name",
perRow: 3
});
});
</script>
Geen opmerkingen:
Een reactie posten