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
Raghavendra Sharma 12Raghavendra Sharma 12 

hi i am new in salesforce.com, is it possible to make a validation rule on attachment object?, please help me this question was asked in my interview today

Best Answer chosen by Raghavendra Sharma 12
Raj VakatiRaj Vakati
Yes , With codes 
https://salesforce.stackexchange.com/questions/70483/file-attachment-upload-maximum-view-state-size-limit-135kbexceeded
https://forceadventure.wordpress.com/2013/07/19/uploading-attachments-to-salesforce-using-javascript-remoting/

All Answers

Raj VakatiRaj Vakati
With The declarative approach, i mean point and clicks you can't able to do.  Please see the idea on the same one 

https://success.salesforce.com/ideaview?id=08730000000GwfrAAC

WIth Apex Triggers or coding approach, you can able to do it. 

 
Raghavendra Sharma 12Raghavendra Sharma 12
Hi raj, is it possible to restrict file size to upload in attachment object??
Raj VakatiRaj Vakati
Yes , With codes 
https://salesforce.stackexchange.com/questions/70483/file-attachment-upload-maximum-view-state-size-limit-135kbexceeded
https://forceadventure.wordpress.com/2013/07/19/uploading-attachments-to-salesforce-using-javascript-remoting/
This was selected as the best answer
Raghavendra Sharma 12Raghavendra Sharma 12
thanks raj