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
How we can implement reply to reply features in Sharepoint discussion Board. I have
In my discussion board I have a Post class. There are two special functions,
Today my colleagues and me have a discussion about the usage of the final
Yesterday, I have a discussion with my colleagues about HTTP. It is asked why
We have this constant discussion in our project as to the granularity of our
This discussion started over here but I thought it would be nice to have
I have been noticing some very strange usage of O(1) in discussion of algorithms
I was having a discussion with coworkers. We have to implement some security standards.
we had a heated discussion about a method name. We have a class User

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.