You need to sign in to do that
Don't have an account?
Surjendu
Not able to put validation rules.
I have a VisualForce page where I am using SalesForce controls like inputText..
I want to provide field level validations for the controls like inputText i am using in the VF page. I provided the filed validation as
But the problem is its not showing the validation error in the same page but showing it in the next page. The exception it showed is
Why should it even go to insert? The validation should happen much before an insert. Please help
I want to provide field level validations for the controls like inputText i am using in the VF page. I provided the filed validation as
Rule Name | No_Special_Characters_ExName | | |
Error Condition Formula | NOT(REGEX( Extranet_Name__c, "/^([a-zA-Z0-9_-]+)$/")) | ||
Error Message | No Special Characters Allowed for this field. |
But the problem is its not showing the validation error in the same page but showing it in the next page. The exception it showed is
Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, No Special Characters Allowed for this field.: [Id]
Why should it even go to insert? The validation should happen much before an insert. Please help
This way if your user tried to create the same record through the API they would receive the same failure.
Was this ever addressed? I am having this same issue... thanks!!
Fred