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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attachments Control bu...
Power Apps
Suggested Answer

Attachments Control button scrolling as files are added.

(0) ShareShare
ReportReport
Posted on by 93
Hi All,

I am trying to work with the attachments control to upload files to blob storage.   I have the control nicely placed at the bottom of my screen when I add items the gallery appears above as expected.   The problem is the button becomes part of the gallery scroll and disappears from the container when x amount of files are added.

I can handle this by resizing the control and the Y position based on number of attachments upt o about 10 (10 is the maximum amount of screen space I have given the control ) If I limit the number of attachments to 10 I can keep the button in the same position with a calculation.  

The trouble is I would like to attach more than 10 files and will never actually know the upper limit.  Hence the scroll bar appears and my button eventually disappears is there a  way to keep the button fixed at the bottom?

Many Thanks
Jamie
 
Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    You can change the ItemSpacing property of the attachment control to a negative number (-20 squeezes them pretty close, but still makes the items readable and actionable). That way you can fit a lot more into the non-scrolling area and also have the Attach icon a lot higher up.
    Also (and this may cause other issues with the height and placement of the Form), you can control the Height of the Attachment control (and do it in conjunction with the above)  - you will have to play with the figures depending on you font/size etc. The first bit allows for the attachments, then the second adds room for the file message at the end. It also ensures a blank control has height
    Min(
        CountRows(Self.Attachments) * 45 + 45,
        90
    )
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
     
  • Nilesh Chakrani Profile Picture
    4 on at

    You can make the height of the attachment DataCard dynamic so the button stays visible. For example, multiply the number of attachments by a fixed row height and cap it with Min to avoid exceeding your screen space:

    Min(CountRows(DataCardValue8.Attachments) * 70, 700)

    This way, the control expands as files are added but won’t push the button into the scroll area.
     
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard