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

Notifications

Announcements

No record found.

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
    Dmytro Rutkovskyi Profile Picture
    1,835 on at

    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.

  • Verified answer
    R89 Profile Picture
    135 on at

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans