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
komalsfdckomalsfdc 

how to blank the field after displaying the error message.

hi,

I have a date filed for that i have a condition like if the date is grater than today i t will give error message ,after error message i want to the field should be blank.How we would do tht 
can please help on this.
Best Answer chosen by komalsfdc
SandhyaSandhya (Salesforce Developers) 
Hi,

After your error message make the field value as null.

Refer below link.

https://salesforce.stackexchange.com/questions/204464/reload-visualforce-page-after-displaying-custom-message
 
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.

Best Regards,
​Sandhya