You need to sign in to do that
Don't have an account?
IntroAmmy
Need to add condition if birthdate is less than 18 years
How can i throw error msg via apex if i have a field name birthdate in vf page and if birthdate is less than 18 years it throw error while i am saving record ..
Can somenone please help.
Thanks,
Can somenone please help.
Thanks,
Greetings!
Apex:-
Vf Page-
add this tag in VF Code
Please mark it as the best answer if it helps you to fix the issue.
Thank you!
Regards,
Malika Pathak
All Answers
You can add the error message using addError in the apex trigger
A simple example for addError is
Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Greetings!
Apex:-
Vf Page-
add this tag in VF Code
Please mark it as the best answer if it helps you to fix the issue.
Thank you!
Regards,
Malika Pathak
Please let me know if any idea how we can do that.