ANS-0667 · CUSTOM FIELDS, RECORDS & FORMS
How to Enable File Uploads on a NetSuite Custom Record Online Form
To allow users to attach files directly to a custom record via an online form, a Suitelet script is required to handle both record creation and file storage.
Short answer
Enabling file uploads on a NetSuite custom record online form requires the implementation of a Suitelet. This Suitelet will be responsible for processing the form submission, creating the custom record, and then uploading the associated file directly to that record, ensuring data integrity and proper linking within NetSuite.
Scenario
Users attempting to configure an online form for a custom record in NetSuite often find that there is no native option to include a file upload field. This limitation prevents direct attachment of documents or other files when submitting new custom record entries through public-facing forms.
Solution
To enable file uploads on an online form for a custom record, a Suitelet must be developed. This Suitelet will serve as the intermediary, handling the form submission process. The Suitelet's primary functions include creating the custom record instance and subsequently uploading the file to it, linking the uploaded document directly to the newly created record. Further details and examples can be found in community discussions such as this one: https://usergroup.netsuite.com/users/showthread.php?t#569&highlightfile+upload%2C+custom+record
Expert NetSuite Support
Need help with this NetSuite issue?
Custom Fields, Records & Forms consulting and configuration support
