function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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