 |
|
 |
When I attempt to add the requiredfield control to a SharePoint 2007 custom form connected to a list attempting to require a selection in a lookup field populated drop down list I receive the "an unexpected error has occured" error. Unfortunately there are no further details provided. I'm guessing that it has something to do with the controltovalidate value but I've tried the SharePoint:FormField id of ff1{$Pos} and a number of other variations with no success. Maybe I'm missing something else altogether. I know that the form works without the validator because as soon as I delete it from the page it loads just fine. Any ideas? Ralph
|
|
|
|
 |
|
 |
what if i need to put "Required Validation" on DromDownMenu?
i can't convert it to Textbox because it'll lose the values inside it.
|
|
|
|
 |
|
 |
I've got something very similar to this article working. However, when I apply a RegularExpressionValidator to an asp:TextBox to check if it's null or not, it doesn't validate when the box is empty. I've been using variations on "^.+$" to do the matching.
Even if it did match however, it would only validate on loss of focus on the TextBox, not on committing the form like a SharePoint:FormField does.
How could this be done?
|
|
|
|
 |
|
 |
Hi Rajan,
First of all thanks for this article. It really is very helpful to a person who does not know much about MOSS 2007 Customization.
I am trying to repeat the same for validating us phone number it does not seem to work but works fine if i test it for a email id it works fine. shoud i change soething when i do it for a us phone number.
Thanks,
Hemanth
|
|
|
|
 |
|
 |
Hello, I get the same problem. Works great for the e-mail validation but then when i add a phone validation or zip code validation it does not work. The e-mail validation continues to work but on the other two no matter what format i try to enter the data in it does not accept it. is this a glitch with SharePoint? Can it not accept more than one validation? Does any one know the solution to this?
|
|
|
|
 |
|
 |
I pretty much followed what you have here with a small problem of, say you have 2 fields, 1 is a Sharepoint:FormField and is marked required. The other is a converted formfield which is now a textbox with a validator. If you populate the converted textbox field but not the sharepoint required field and submit, after postback, the data is gone in the textbox field. Did you experience this issue?
Thanks
|
|
|
|
 |
|
 |
I am new to sharepoint development, especially haven't done much with designer. I need to add cross field validation on new form. Field 1 is a drop down list with Value 1,2 amd 3. If Field 1 = 2 then
user must fill the next field - Field 2.
Do you have any idea on how to accomplish this?
Thanks,
Singh
|
|
|
|
 |
|
 |
I have created custom e-mail field using sharepoint feature, i have to validate the e-mail field using c# code. can you help me, its urgent.
|
|
|
|
 |
|
 |
I have more than one site collection on a single port. Now when i implement this method on Edit form it redirects itself to main web application. Can this be resolved
"Success is 1% Inspiration and 99% Perspiration"
|
|
|
|
 |
|
 |
I get the error:
Control 'ff11_1' referenced by the ControlToValidate property of 'RequiredFieldValidator1' cannot be validated
'ff11_1' is the ID of the control to be validated, but it seems to be wrong.
The control lives in a content page that lives in a master page.
Any idea what the ID should be when working with master pages ?.
I have tried all possible combinations but without success.
|
|
|
|
 |
|
 |
I was checking this article as I have been referenced by others. I am having the same problem creating this validation and the ID would not work. Did you get a response for this?
I attempt to test the page and it gives me Error.
Meghan
|
|
|
|
 |
|
 |
Hai Rajan,
I'm kalpana i have some task at my office .I', working for HR portal where i need to create Leave Request List.In that i need to validate the From and Start date's .So that from date should not be passed date and To date should be greater than from date.When i'm trying to put validations as u mentioned in the articel in sp i'm getting error "In internet explorer 6.0 <asp:comparevalidator xmlns:asp="#unknown"> tag is not submitted".
So,Please help me
kalpana
|
|
|
|
 |
|
 |
Hi Kalpana,
How are you specifying the formulas? can you please let me know about this?
and also have you tried creating Calculated Columns for staring Date and End Date instead of doing this in the SPD validation method that i have discussed.
Rajan
|
|
|
|
 |
|
 |
Hi,
I too am getting the same error message for the regularexpressionvalidator. Can someone help?
Kalpana,
Did you get a solution for this?
|
|
|
|
 |
|
 |
I wonder if this blog still works as everyone is sending me this article, but it's not working.
Meghan
|
|
|
|
 |