Learn more. Asked 3 years, 2 months ago. Active 3 years ago. Viewed 3k times. Improve this question. Madhurima Madhurima 1, 2 2 gold badges 17 17 silver badges 43 43 bronze badges. You can write your own component based on SLDS. That's the only way to "work around" the issue.
Add a comment. Active Oldest Votes. From documentation : File uploads are always associated to a record, hence the recordId attribute is required. As for: I have also checked in a stand alone app The reason is because it's not supported in stand alone app Usage Considerations This component is not supported in Lightning Out or standalone apps, and displays as a disabled input. The component allows multiple file uploads.
However you will need a recordId. Improve this answer. Community Bot 1. Jayant Das Jayant Das As, in my case record gets created from the form where I have the fileupload functionality, it would be impossible to get record id in there. Is there any other way I can do multiple file upload? Without a recordId, you cannot. Disabled elements are usually rendered in gray by default in browsers.
We just launched W3Schools videos. Get certified by completing a course today! If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:. Properties: constructor global ignoreCase lastIndex multiline source Methods: compile exec test toString.
Example Disable a FileUpload button: document. Report abuse. Details required :. Cancel Submit. Hi All, File Upload option is greyed out in the following conditions: Form is set to Anyone with the link can respond option.
You are editing the form as collaborator. For more information, see Can't upload file as attachment in form Workaround : Move the form to Group Forms which will allow members of the group to author. Thanks, Neha.
0コメント