1

I'm looking for a simple way to make a SharePoint:FormField required.

I want to do it using C# or SharePoint options but not using JQuery or Javascript because I already know how to do it with JS an JQuery. Obviously the "Required='TRUE'" attribute within list column definition is useless, at least for custom forms. Please a way that do not include Using UI will be appreciated.

5
  • 1
    Are you setting the field in the list to be required, that would be my first step. Dec 4, 2015 at 15:18
  • Yes I did it already :(
    – ameliapond
    Dec 4, 2015 at 15:30
  • You are creating form first and then making changes to your list after making fields mandatory or non-mandatory. You need to create the form once again after making changes. So that you will see that field as a mandatory. Dec 4, 2015 at 15:37
  • Thank you ! I saw your answer a little bit too late. Please don't pay attention to my comment below your answer.
    – ameliapond
    Dec 4, 2015 at 15:43
  • Ok that's fine. Dec 4, 2015 at 15:47

1 Answer 1

2

You can make that column required by going to List Settings and clicking on to the column, and then just clicking option Yes under "Required that this columns contains information". If you are using sharepoint Forms, then I think you need to create again the new form if you are making changes on the list after creating the new form. That changes will get updated only when you create the new form once again. So first we need to define which columns are to be made mandatory and which are to be made non-mandatory. There is immense importance to define list architecture first of all in SharePoint.

1
  • Does that mean that I need to recreate all my custom forms (New and Edit ) if I decided to change one attribute of one of my columns ?
    – ameliapond
    Dec 4, 2015 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.