You need to sign in to do that
Don't have an account?

How to avoid required field while updating record in the page using trigger ?
Hi All ,
Here my requirement is while creting a record i need required field and updaing the same record i don't want required field.
Example:
I) I Have one custom object Employee__c and field is DOB.Now while creating a record i need required field , if value is not there , then it showing required value is missing
2) I want update on same record then i have remove value from DOB field at that time i don't want required value.
Please suggest me, how can achive with example code.
Thanks in Advance.
Chinna
Here my requirement is while creting a record i need required field and updaing the same record i don't want required field.
Example:
I) I Have one custom object Employee__c and field is DOB.Now while creating a record i need required field , if value is not there , then it showing required value is missing
2) I want update on same record then i have remove value from DOB field at that time i don't want required value.
Please suggest me, how can achive with example code.
Thanks in Advance.
Chinna
This is a validation rule on account which checks enforces value in AccountNumber field on creation of account.
All Answers
This is a validation rule on account which checks enforces value in AccountNumber field on creation of account.
While creation, if value is missing it throws error and while updating, it will not throw any error even though it is blank.