You need to sign in to do that
Don't have an account?
JBerry
SControl upload files?
Hi,
I am creating a form for the users in our company to go and fill out a "Tech Request" ticket, which when they click the Submit button, it creates a record under a custom object that I have built. I am doing it this way because I do not want our users directly modifying that custom object and it is full of a bunch of items they don't need.
This form consists of basics for them to fill out: Name, Problem, Description. I am trying to add a 'File Upload" section here that they can browse their computer for, say a screenshot, and upload it along with the form. This upload needs to be sent to the "Notes and Attachments" section of the Custom Object record they just created.
Any ideas? =)
I am creating a form for the users in our company to go and fill out a "Tech Request" ticket, which when they click the Submit button, it creates a record under a custom object that I have built. I am doing it this way because I do not want our users directly modifying that custom object and it is full of a bunch of items they don't need.
This form consists of basics for them to fill out: Name, Problem, Description. I am trying to add a 'File Upload" section here that they can browse their computer for, say a screenshot, and upload it along with the form. This upload needs to be sent to the "Notes and Attachments" section of the Custom Object record they just created.
Any ideas? =)
You, of course, will need to populate the record id of the record to which you want the file attached (this is the "pid" field in the code). In addition, you will need to modify the "save_new_url" and "cancelURL" values to suite your specific needs. In my sample I was interacting directly with my custom sControl to show that the attachment was saved - it sounds like you might do the same thing.
When I click my browse, find my file, and then click Submit, it takes me to the SF upload page telling me to select a file for upload. When I go ahead and do it here, it attaches correctly. I'm just at a loss of where to pass my field that contains the file =).
Thank you!
Let me know if that works,