web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Portal Form ChooseFiles

(0) ShareShare
ReportReport
Posted on by 135

Hi

I have a portal form that allows the end users to attach files. When the files are picked from the C drive by the end user it shows 2 files or 3 files next to the button Choose Files.

Is there a way to show the names of the files in a sub-grid above the Choose Files button so that the end user is aware of what is attached ? 

Thanks for your suggestions.

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    R89 Profile Picture
    135 on at
    RE: Portal Form ChooseFiles

    Thanks. It worked exactly the way you described.

    As a followup question is there way a to change the Choose Files button text ?

    Thks

    R89

  • Verified answer
    Dmytro Rutkovskyi Profile Picture
    1,835 on at
    RE: Portal Form ChooseFiles

    Hi, Its not OOB functionality. If you Edit entity (not creation) - you can add Notes section With Entity Form Metadata  configuration, which allow you to add multiple files with Notes.

    If you are ok with current approach, you can add simple Javascript to "Custom Javascript" Section of the form

    $(document).ready(function() {
    
    $("#AttachFile").change(function(){ 
    var addstring = "";
    var files = $("#AttachFile")[0].files;
    for (let i=0;i<files.length;i++) {addstring+=files[i].name+"; ";}
    
    if (addstring) $("#AttachFileLabel").text("Selected: "+addstring);
      else $("#AttachFileLabel").text("Attach multiple files:");
    });  
      
    }); 


    I have tested it on Contact-Us default entity form with enabled attachment upload.
    attachment_5F00_disaply.JPG

    You can customize it in more acceptable UI for your case.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans