Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to Hide fields on customized DispForm.aspx in SharePoint 2010

$
0
0

Hi There,

I have been facing with this issue since 4 weeks, let me explain my requirement first.

I want to hide 2 fields on DispForm.aspx of a custom template.

Following are the lines of code written for customizing DispForm.aspx  using ListFieldIterator SP control.

<SharePoint:ListFieldIterator runat="server" ExcludeFields="PublishingStartDate">
                                        <CustomTemplate>
                                            <tr>
                                                <td class="fp-ms-vb2">
                                                    <SharePoint:FormField ControlMode="Display" DisableInputFieldLabel="true" runat="server">
                                                </td>
                                            </tr>
                                            <tr style="height:5px;"><td></td></tr>
                                        </CustomTemplate>
                                    </SharePoint:ListFieldIterator>

those 2 fields are also generated using ListFieldIterator control. 

Can someone suggest me how to hide specific fields.

Thank you in advance,

Vikram 


vikram padigala


Viewing all articles
Browse latest Browse all 11571

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>