You need to sign in to do that
Don't have an account?
how to display error message next to text field using apex class
Hi ,
Iam validating a text field and displaying error message when the condition fails , right now it is showing error at top of page i need to show next to field how can i acheive this my condition is like this..
if(oli.Discount > 100){
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, 'Discount should be in between 0 to 100.'));
PageReference pa = new PageReference('/apex/OLIeditAll?ids='+ IdString);
return pa;
Iam validating a text field and displaying error message when the condition fails , right now it is showing error at top of page i need to show next to field how can i acheive this my condition is like this..
if(oli.Discount > 100){
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, 'Discount should be in between 0 to 100.'));
PageReference pa = new PageReference('/apex/OLIeditAll?ids='+ IdString);
return pa;
thanks
kiran