You need to sign in to do that
Don't have an account?
Salesforce Admin 78
Error of validation rule on VF page is showing two times
Hi
1. I have created a validation rule on custom object.
2. I'm receiving error two times on VF page when validation rule is true and my error location is top of page.
3. I have added <apex:pagemessages /> on VF page.
4. In Apex Controller i have added apexpages.addMessages(e); in catch exception
My Validation Rule
AND(TEXT(ZDCP__c) <> null, ISBLANK(PCM_Sheet__r.Agent__c ))
Error is showing like this:
Can anybody please tell how can i get the error one time.??
1. I have created a validation rule on custom object.
2. I'm receiving error two times on VF page when validation rule is true and my error location is top of page.
3. I have added <apex:pagemessages /> on VF page.
4. In Apex Controller i have added apexpages.addMessages(e); in catch exception
My Validation Rule
AND(TEXT(ZDCP__c) <> null, ISBLANK(PCM_Sheet__r.Agent__c ))
Error is showing like this:
Can anybody please tell how can i get the error one time.??
Thamks for your valuaable time.
But I didn't understand where you are asking me to do the changes.
I'm placing my VFpafe where i have made a change
Here i'm placing the apex class where i have made a change
Here is my Validation Rule i have made
Please tell where i have to made changes.
Thanks in advance.