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

  • SEARCH
  • Home
  • 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 956041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:28:52+00:00 2026-05-16T00:28:52+00:00

There’s this cool new feature in SP 2010 where you can specify a custom

  • 0

There’s this cool new feature in SP 2010 where you can specify a custom validation formula and an error message for any column.

For some reason it doesn’t work when you replace the default NewForm.aspx for a list with a custom form using SharePoint designer’s “Create New List Form -> New Item Form”. It creates an aspx where it puts a FormField control for every field of the selected content type instead of the ListFormWebpart which iterates and renderes every field with no fields explicitly mentioned on the page.

The code for every field on a just-created custom form is similar to the following (just to illustrate)

<tr>
  <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>PhoneNumber</nobr></H3>
  </td>
  <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff4{$Pos}" ControlMode="New" FieldName="PhoneNumber" __designer:bind="{ddwrt:DataBind('i',concat('ff4',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PhoneNumber')}"/>
    <SharePoint:FieldDescription runat="server" id="ff4description{$Pos}" FieldName="PhoneNumber" ControlMode="New"/>
  </td>
</tr>

The problem is that with a “Create New List Form -> New Item Form” form the (new sharepoint 2010) formula validation doesn’t work: it passes the validation on the form only failing on the save stage resulting in an error page.

Is it in any way configuarable with the FormField control or can I in any other way take benifit of this new sp2010 validation mechanism when using a custom (non-ListFormWebpart) item pages or do I have to write custom GUI validation in this case?

Thanks!

  • 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-16T00:28:52+00:00Added an answer on May 16, 2026 at 12:28 am

    The problem is not with the FormField control itself, but with the DataFormWebPart web part I was using these fields in. There’re 2 issues:

    1. With the uninquness the field throws an exception which should be correctly handled by the WebPart showing the message that an item with such value of the field already exists. But the DataFormWebPart doesn’t handle this exception, while the default ListFormWebPart does. It is similar with the custom validation formula.
    2. SharePoint field controls implement the IValidator interface so that the owning WebPart can validate them and display appropriate messages (e.g. for required lookup fields), but the DataFormWebPart doesn’t do that (The ListFormWebPart does)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is this SQL Statement SELECT t1.Name ,Count(t2.SubID) Totals -- I don't know how
there is an array in c# string[] arr = new string[] {1,A,D,3,5,AF,34,TU,E,OP,4}; so how
There are many string matching algorithms can be used to find a pattern (string)
There is this strange situation I'm fighting on. I have 3 pages, les call
There is probably an easy answer for this, but when I added DateTime.Now.ToString() to
There is TemplateLoader in Play 1.0 for generating templates in runtime. Is there any
There must be a simple solution to this, but after 4 hours of browsing
There's a lot of reading on self referencing problems, but I can't seem to
There are things like f.call(...) f.apply(...) But then there's this (1, alert)('Zomg what is
There doesn't seem to be any tried and true set of best practices to

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.