New answers tagged validation
this is a simplified version i made for you but havent tested it! so might need some tweaking ;) You dont need to change the second method! for the first method, replace yourSiteGoesHere with your site name or leave blank. change ListName to the name of your list. you would call the method like so: //returns bool if the current user exists in ...
It seems that some field properties are not inherited when referenced within Content Types. So although I had Required="TRUE" set in my Field, I also had to add it to the FieldRef of the Content Type. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- Parent ContentType: Workflow Task ...
Your validation controls (and your button) should specify a validation group. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.basevalidator.validationgroup%28v=vs.110%29.aspx
Check that particular user has permission in list
This is not normal if your definition is correct. Could you post it? Update: <Default></Default> <= Get rid of that. <Field Type="Choice" DisplayName="Test_Field" Required="TRUE" EnforceUniqueValues="FALSE" Indexed="FALSE" Format="Dropdown" FillInChoice="FALSE" ...
Are you not putting a line for default value? or are you setting DefaultValue="" ? I believe you require the latter in order for this to work.
Top 50 recent answers are included