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
AnumcaAnumca 

How can we get the error message when Displaying the Year & Month in VF page

Hi All

 

  I had displayed the dtae in a text box in VF page,But I need to dispaly the Error message when we enter the other than  date in the text box.

 The format should be while entering into the text box is year & month only.  this can be do using VF page,not a validation.

 please help me..

 

Thanks

Anu....

 

 

myforcedotcommyforcedotcom

Is you have an <apex:messages /> section or your VF Page. Then in your controller you can add a message to that section.

Here is a link to the docs with an example:

http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_compref_message.htm