I created a custom list and kept the "Title" as unique and required.
When I use the ListFormWebPart in "NewForm.aspx" all the validations work fine, i.e. for required and dulicate entry it shows the validation messages.
But for DataFormWebPart, created via SharePoint Designer 2010 or out of the box for the same list, the required validation works but the unique does not work as expected and throws the asp.net default exception web page showing the following error: The list item could not be added or updated because duplicate values were found in the following field(s) in the list: [Title]
Note: The ListFormWebPart is the default "NewForm.aspx" and the DataFormWebPart is created by default in the customNewForm.aspx added via SPD 2010
I have not changed anything in the new custom form and i need to make the custom form. Do i need to do any other thing specifically to get this validation working?