Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 790779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:44:00+00:00 2026-05-14T21:44:00+00:00

I have a Discussion Board in a SharePoint site which has an additional column

  • 0

I have a Discussion Board in a SharePoint site which has an additional column named Category. When a new discussion is created, it prompts for Category, and of course this is by design.

The problem is that when the discussion is replied to, it prompts for the category again.

How can I separate the reply functionality so that the Category is not prompted and the Category is set to that of the discussion under which it resides?

I attempted to edit a copy of NewForm.aspx in SharePoint Designer, but you can only edit which WebPart it is using, not which fields are displayed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:44:00+00:00Added an answer on May 14, 2026 at 9:44 pm

    In a SharePoint Discussion Board, there are two separate content types: Discussion and Message. The Discussion is the folder that represents the entire thread of discussion, while the Message is for each reply item inside that folder.

    To make the Category only available for the Discussions, instead of just adding the field to the list, add it specifically to the Discussion content type for that board, and make sure it is not added to the Message content type (remove it if it is).


    If you want to actually have the Category field on all replies and have it have the same value as the parent discussion, unfortunately you’ll have to be a little tricky and use some event handlers. If you aren’t yet familiar with them, read this article for a basic example. You’ll need to create an “ItemAdding” or “ItemAdded” event and attach it to the Discussion Board. This event receiver should first check if the item being added is a message or a discussion (item.ContentType.Name.Equals("Message")). Then, retrieve the parent; the ID of the parent of the message is stored in a field with the display name “Parent Folder Id”. Retrieve the value of the Category for the parent, and then set the value of the Message’s Category to match that. Final step, to make the Category field on the Message Content Type not shown in the Edit Form, you need to flip the “ShowInEditForm” property of that field on that content type on that discussion board to “false”. You can accomplish this in the object model with a simple list.ContentTypes["Message"].Fields["Category"].ShowInEditForm = false;, where list is your discussion board instance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have FBA sharepoint site. I am trying to use discussion board RSS feed
I'm building a forum type site in which posts will have different types: Discussion,
How we can implement reply to reply features in Sharepoint discussion Board. I have
I have a table which contains a column discussion_duration where I am storing certain
Has there been discussion around how to resolve equivalent openids? Meaning, I personally have
I have a discussion board, and users can post comments on the board. But
I am writing a discussion board software that will have avatar images for the
I have a Sharepoint discussion list that belongs to an Exchange list with the
I have a discussion board with the following table structure: +-------------------------------+ | TABLE: MESSAGES
I am currently developing a sharepoint webpart to display a private discussion board. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.