Page 1 of 1

Add a Checkbox to a Related Item View

Posted: 17 May 2017
by joetel8
I would like to add a checkbox to a related item view using the View option. Nothing too complex just a field titled = "Requested"

Can I add a html check box that will remained checked when is saved or loaded?

Something like what is written below:
<View>
<ViewFields>
<FieldRef Name="Edit" />
<FieldRef Name="ChekListItem" />
<FieldRef Name="Collected" />
<FieldRef Name="Verified" />
<FieldRef Name="Collected_Value" />
<FieldRef Name="Verified_Value" />
<FieldRef Name="Tally" />
<HTML><![CDATA[<input type="checkbox" ]]></HTML> // I would like to add a check box here
</ViewFields>
<ViewData />
<Query>
<Where>
<Eq>
<FieldRef Name="Responsible" />
<Value Type="Text">Recruiter</Value>
</Eq>
</Where>
</Query>
<Aggregations Value="On">
<FieldRef Name="ChekListItem" Type="COUNT" />
</Aggregations>
<Mobile MobileItemLimit="3" MobileSimpleViewField="ChekListItem" />
<Toolbar Type="None" />
<XslLink Default="TRUE">main.xsl</XslLink>
<JSLink>clienttemplates.js</JSLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View>

Thank you for your assistance.

Joe

Re: Add a Checkbox to a Related Item View

Posted: 17 May 2017
by Dmitry Kozlov
Hi,
Please, expand the View property of the Related Items control in Forms Designer and add TabularView="True" attribute into View element:
<View TabularView="True">