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
r3rr3r 

upload file

issue is we have to create a field in opportunity that have to store documents after saving the document automatically stage should be closed/won what i have to do...............

prakash_sfdcprakash_sfdc
Where you will upload ? In Notes and Attachments ?

If yes, write a trigger on Attachment object to achieve this.
r3rr3r
Hi No we have to create a field in that field we have to place a document,if the field is true automatically stage should be close,my problem is there is no data type to store document help me
prakash_sfdcprakash_sfdc
Override your Edit Page and use <apex:inputFile> and then you can check the value.
ShahTheTrainerShahTheTrainer

1.  select the field type is Text Area Rich, to upload documents.

2. Workflow Rule [tricky logic in formula section] with Field Update action.

 

r3rr3r
hi, can u explain with example,plz.
prakash_sfdcprakash_sfdc
Rich text area will allow only images I think.. not all types of files.