Hot answers tagged

2

You also need to set properties.Cancel = true; Your final code will look like public override void ItemAdding(SPItemEventProperties properties) { try { //my code SPListItem parentItem = oList.GetItemById(discussionId); SPListItem reply =SPUtility.CreateNewDiscussionReply(parentItem); reply["Body"] = ...


2

Create a calculated column and set it to return a number datatype. This allows you to enter and run code. Copy paste the following (enter the actual name of the senders email column): ="<a href='mailto:"&[SendersEmail]&";INCOMINGEMAIL@SHAREPOINT.com'>Reply</a>" This will open up the user default mail application (such as Outlook) and ...


2

Go to the Discussion board list setting. Edit Created By column from Columns section. Change show field as Picture only (36*36). Save it and check in view. It will display user photo on created discussion.


1

This might be duplicate of the Create a folder structure in a discussion board. Please have a look to this link and let me know whether this helped you.


1

A discussion board comes with two content types: Discussion and Message. Discussion is the high-level content type, Message is all the replies. If you add your "State" or "Status" field or whatever to the Discussion content type, it will only apply to the question, not the responses. Create a Site Column called State, and give it whatever values you ...


1

I had this same problem. My discussion board is on a publishing site, not team or community. The views are not editable. The only solution I found is to edit the list in SharePoint Designer. Go to the discussion board and on the ribbon click to edit the list in SharePoint Designer. When it opens, click the view you are using (like subject) then you get a ...


1

Shailen Sukul has a great example posted on the MSDN forums. I suggest you start there first. https://social.msdn.microsoft.com/Forums/en-US/54d780ea-df2f-408d-9056-cf6f0c27f04e/add-xsltlistviewwebpart-via-code?forum=sharepointdevelopmentprevious


1

So you can achieve this using changing the view of your Discussion board. Path : Your discussion board -> List Setting -> Views -> Threaded(Flat in online) -> check this option --Make this the default view -> Save.


1

I figured it out! The Body text had been changed from Rich HTML text field to a Plain text field. Changing this back to Rich HTML fixed the problem. I'm not entirely sure why, but I suspect it is because the Reply field and Body text are linked in some way. I cannot see if it is possible to make the Reply field plain text as well; I imagine this would ...



Only top voted, non community-wiki answers of a minimum length are eligible