+ Start a Discussion
Board salesforceBoard salesforce 

Error Message at field level in VF using Javascript

Hi all,

can any one please help out,
how make a field required with error message on clicking ob submit button at field level using javascript  in Vf not in controller? 
Thanks ,
Ram

Sagar PareekSagar Pareek
Hi Board,

Make sure you use required attribute on the vf tag you are using. Also add <apex:pageMessages/> tag on the same vf page.
Board salesforceBoard salesforce
Sagar,
i want it required  using javascript in vf , without using <apex:pagemessages/> i need it